summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2017-12-08 12:19:45 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2017-12-08 12:19:45 +0000
commit9c08b7a0539ea98e6119ca1038a65c081e17d364 (patch)
tree73f18dc5a4ba648ef0ef86685aa0c737c6368c4a /llvm/lib/Target/AMDGPU
parentf4bd295576d6ea3fa1dc69f5ec88e45c9e369fc1 (diff)
downloadbcm5719-llvm-9c08b7a0539ea98e6119ca1038a65c081e17d364.tar.gz
bcm5719-llvm-9c08b7a0539ea98e6119ca1038a65c081e17d364.zip
[SCEV] Fix predicate usage in computeExitLimitFromICmp
In this method, we invoke `SimplifyICmpOperands` which takes the `Cond` predicate by reference and may change it along with `LHS` and `RHS` SCEVs. But then we invoke `computeShiftCompareExitLimit` with Values from which the SCEVs have been derived, these Values have not been modified while `Cond` could be. One of possible outcomes of this is that we may falsely prove that an infinite loop ends within some finite number of iterations. In this patch, we save the original `Cond` and pass it along with original operands. This logic may be removed in future once `computeShiftCompareExitLimit` works with SCEVs instead of value operands. Reviewed By: sanjoy Differential Revision: https://reviews.llvm.org/D40953 llvm-svn: 320142
Diffstat (limited to 'llvm/lib/Target/AMDGPU')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud