Permit ChangeCompareStride to rewrite a comparison when the factor
commit77304eb58fb6a826c4bc44fabaa78a9b3d2c0d21
authorDan Gohman <gohman@apple.com>
Mon, 27 Apr 2009 20:35:32 +0000 (27 20:35 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 27 Apr 2009 20:35:32 +0000 (27 20:35 +0000)
treec49c4223ff0145c11e8d9e5ca5747bfc5a03bc46
parentc6c47d263dc0c132ada1155b20eb832cd0bdb0e8
Permit ChangeCompareStride to rewrite a comparison when the factor
between the comparison's iv stride and the candidate stride is
exactly -1.

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