Reverse a loop that is counting up to a maximum to
authorDale Johannesen <dalej@apple.com>
Mon, 11 May 2009 17:15:42 +0000 (17:15 +0000)
committerDale Johannesen <dalej@apple.com>
Mon, 11 May 2009 17:15:42 +0000 (17:15 +0000)
commitc1acc3f764804d25f70d88f937ef9c460143e0f1
tree149c9fdd6325f0a2ff25c32610c4de1e33bde324
parentb9cfbd94abb23ec8646b9b10aa4ac3d1cbf4461e
Reverse a loop that is counting up to a maximum to
count down to 0 instead, under very restricted
circumstances.  Adjust 4 testcases in which this
optimization fires.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71439 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll
test/CodeGen/X86/iv-users-in-other-loops.ll
test/CodeGen/X86/masked-iv-safe.ll
test/CodeGen/X86/pr3495.ll