OSDN Git Service

[LFTR] Rephrase getLoopTest into "based-on" check; NFCI
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 29 Jun 2019 15:12:59 +0000 (15:12 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 29 Jun 2019 15:12:59 +0000 (15:12 +0000)
commit3f463ae38e7896dbb07b668aec6c84506dda3b92
treed61c4bf48bd715140e4698127f05a5ec92a7a791
parent5a07a493652e6b2b00ab30c20a6120e2eb971956
[LFTR] Rephrase getLoopTest into "based-on" check; NFCI

What we want to know here is whether we're already using this value
for the loop condition, so make the query about that. We can extend
this to a more general "based-on" relationship, rather than a direct
icmp use later.

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