]> granicus.if.org Git - llvm/commit
[LFTR] Remove unnecessary latch check; NFCI
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 29 Jun 2019 12:41:02 +0000 (12:41 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 29 Jun 2019 12:41:02 +0000 (12:41 +0000)
commite2e907a75f5bb92b602cc25ca718a3ce70bc028f
treefcbc6c88f112f10ae889e452125b560e7f827d6b
parent40b63d7e1236d349b818c7435f74b4551aacc146
[LFTR] Remove unnecessary latch check; NFCI

The whole indvars pass works on loops in simplified form, so there
is always a unique latch. Convert the condition into an assertion
in needsLFTR (though we also assert this in later LFTR functions).

Additionally update the comment on getLoopTest() now that we are
dealing with multiple exits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364713 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp