]> granicus.if.org Git - llvm/commit
[IndVars, RLEV] Support rewriting exit values in loops without known exits (prep...
authorPhilip Reames <listmail@philipreames.com>
Wed, 31 Jul 2019 21:15:21 +0000 (21:15 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 31 Jul 2019 21:15:21 +0000 (21:15 +0000)
commitd5a3ed48801378a7359534a0324e27d62dbdda73
treefcb4e11273b7a278aeaf36ade08211a6873c1017
parentdfa8a6d5ea690bc431317ecdaf2369447ec1637b
[IndVars, RLEV] Support rewriting exit values in loops without known exits (prep work)

This is a prepatory patch for future work on support exit value rewriting in loops with a mixture of computable and non-computable exit counts.  The intention is to be "mostly NFC" - i.e. not enable any interesting new transforms - but in practice, there are some small output changes.

The test differences are caused by cases wherewhere getSCEVAtScope can simplify a single entry phi without needing any knowledge of the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367485 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/lftr-pr20680.ll
test/Transforms/IndVarSimplify/pr38674.ll