When forming an ICmpZero LSRUse, normalize the non-IV operand
authorDan Gohman <gohman@apple.com>
Wed, 18 May 2011 21:02:18 +0000 (21:02 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 18 May 2011 21:02:18 +0000 (21:02 +0000)
commit673968ae78f26bd78337d8bbb212fd280839fc12
treefe8473f30be7eb38ef3393f8e650d3d2206343d5
parent2d48ad67cd3c18098edd9ed14437139bdf5b5f53
When forming an ICmpZero LSRUse, normalize the non-IV operand
of the comparison, so that the resulting expression is fully
normalized. This fixes PR9939.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131576 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll [new file with mode: 0644]