Rewrite LinearFunctionTestReplace to handle pointer-type IVs.
authorAndrew Trick <atrick@apple.com>
Wed, 2 Nov 2011 17:19:57 +0000 (17:19 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 2 Nov 2011 17:19:57 +0000 (17:19 +0000)
commitd3714b60b5adf15376a8803e6622c74694884b28
tree8ad325293d2ec884f0e238fdf9936d1b941522ae
parenta71b7b09116059e2a4359026f72eb429b6d2da8d
Rewrite LinearFunctionTestReplace to handle pointer-type IVs.

We've been hitting asserts in this code due to the many supported
combintions of modes (iv-rewrite/no-iv-rewrite) and IV types. This
second rewrite of the code attempts to deal with these cases systematically.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143546 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll