OSDN Git Service

Permit ChangeCompareStride to rewrite a comparison when the factor
authorDan Gohman <gohman@apple.com>
Mon, 27 Apr 2009 20:35:32 +0000 (20:35 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 27 Apr 2009 20:35:32 +0000 (20:35 +0000)
commitc7749b747e634f310b7f0e075f7329dcb88f58cc
treec49c4223ff0145c11e8d9e5ca5747bfc5a03bc46
parent487fa01673a1d13331b7173e9e6812e72dd4361e
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]