Refine the change in r52258 for avoiding use-before-def conditions
authorDan Gohman <gohman@apple.com>
Mon, 16 Jun 2008 22:34:15 +0000 (22:34 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 16 Jun 2008 22:34:15 +0000 (22:34 +0000)
commit9b93dd1f1ab3532a101a432d7000477adfe6401d
tree863a47ab5539552a0feea84dd9cee58e410c2cda
parentd34ff143588df2c8a5e69d8f2674dd4c6b38428f
Refine the change in r52258 for avoiding use-before-def conditions
when changing the stride of a comparison so that it's slightly
more precise, by having it scan the instruction list to determine
if there is a use of the condition after the point where the
condition will be inserted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52371 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Transforms/LoopStrengthReduce/change-compare-stride-trickiness-0.ll [new file with mode: 0644]
test/Transforms/LoopStrengthReduce/change-compare-stride-trickiness-1.ll [new file with mode: 0644]
test/Transforms/LoopStrengthReduce/change-compare-stride-trickiness.ll [deleted file]