[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)
commit8023c8443380918f1ee7c244b74f14b26b5a3f6c
tree98fa46641a694616b8c9213026dcae57b94b5ad9
parent77dc1e85683c585a08982af745f07647624eda1b
[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.

llvm-svn: 364715
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp