OSDN Git Service

RewriteExpr, either the new PHI node of induction variable or the
authorEvan Cheng <evan.cheng@apple.com>
Fri, 9 Jun 2006 00:12:42 +0000 (00:12 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 9 Jun 2006 00:12:42 +0000 (00:12 +0000)
commit86c75d31133319a88216c1b1cd26a789e4023000
tree4b6528872a350bb0ed175d23474c12ecc372bf74
parenta4529321713313545f53ee759800705bdb3f2a29
RewriteExpr, either the new PHI node of induction variable or the
post-increment value, should be first cast to the appropriated type (to the
type of the common expr). Otherwise, the rewrite of a use based on (common +
iv) may end up with an incorrect type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28735 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp