OSDN Git Service

Rewrite LinearFunctionTestReplace to handle pointer-type IVs.
authorAndrew Trick <atrick@apple.com>
Wed, 2 Nov 2011 17:19:57 +0000 (17:19 +0000)
committerStephen Hines <srhines@google.com>
Mon, 14 Nov 2011 17:11:37 +0000 (09:11 -0800)
commitaddc975ef19014883a10fe80e63943e537223a9e
tree732745d48f5c4b8887fed9472c4d02ade7d45757
parent3217024c6a9f9225765f7843dcaa5f09f913aca4
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