commit | b289a8343894a667334d94c32074a273421ac771 | [log] [tgz] |
---|---|---|
author | Sanjoy Das <sanjoy@playingwithpointers.com> | Fri Mar 18 20:37:07 2016 +0000 |
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | Fri Mar 18 20:37:07 2016 +0000 |
tree | 5dabef1f50858deb9dc4f5da84c82ab32881cb1c | |
parent | 643e47a345d442100211fb4e2a31e878a49b60a6 [diff] |
[IndVars] Pass the right loop to isLoopInvariantPredicate The loop on IVOperand's incoming values assumes IVOperand to be an induction variable on the loop over which `S Pred X` is invariant; otherwise loop invariant incoming values to IVOperand are not guaranteed to dominate the comparision. This fixes PR26973. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263827 91177308-0d34-0410-b5e6-96231b3b80d8