Use getSCEV instead of getUnknown to create a SCEV for a
authorDan Gohman <gohman@apple.com>
Mon, 29 Jun 2009 21:31:18 +0000 (21:31 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 29 Jun 2009 21:31:18 +0000 (21:31 +0000)
commit099879687f898bdad5d5ff4d74efe0c2e5e284d1
treed14a220a62e0594933584d017b2d1be07de2b6c5
parent513306395c98fb8dac2537f0d13881b24d35075b
Use getSCEV instead of getUnknown to create a SCEV for a
Constant. This lets ConstantInts be handled as SCEVConstant instead
of SCEVUnknown, as getUnknown no longer has special-case code for
ConstantInt and friends. This usually doesn't affect the final
output, since the constants end up getting folded later, but it
does make intermediate expressions more obvious in many cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74459 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp