OSDN Git Service

[LFTR] Use SCEVExpander for the pointer limit case instead of manual IR gen
authorPhilip Reames <listmail@philipreames.com>
Wed, 3 Jul 2019 20:03:46 +0000 (20:03 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 3 Jul 2019 20:03:46 +0000 (20:03 +0000)
commitda1c0f6889abf20ea440be2d76f1b75dae49dbbe
tree502c076278c0602a313972530d16f6f639ffbea3
parent9a6b61c6ab46b7dd70f7ed506dfef5278a68a540
[LFTR] Use SCEVExpander for the pointer limit case instead of manual IR gen

As noted in the test change, this is not trivially NFC, but all of the changes in output are cases where the SCEVExpander form is more canonical/optimal than the hand generation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365075 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll
test/Transforms/IndVarSimplify/lftr-address-space-pointers.ll
test/Transforms/IndVarSimplify/lftr-dead-ivs.ll
test/Transforms/IndVarSimplify/lftr-pr41998.ll
test/Transforms/IndVarSimplify/lftr-reuse.ll