]> granicus.if.org Git - llvm/commit
[IndVars] Extend reasoning about loop invariant exits to non-header blocks
authorPhilip Reames <listmail@philipreames.com>
Tue, 14 May 2019 17:20:10 +0000 (17:20 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 14 May 2019 17:20:10 +0000 (17:20 +0000)
commitd2a49ce9fc46c7cba6b807130ad632d0e3f73ed4
tree5d8a221da883f4fe9d5c8451a3e2cfdad6e77958
parentddde212471a439a16817b717f33300f136ede2af
[IndVars] Extend reasoning about loop invariant exits to non-header blocks

Noticed while glancing through the code for other reasons.  The extension is trivial enough, decided to just do it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360694 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/rewrite-loop-exit-value.ll
test/Transforms/LoopUnroll/scevunroll.ll