diff options
author | Max Kazantsev <max.kazantsev@azul.com> | 2017-07-08 17:17:30 +0000 |
---|---|---|
committer | Max Kazantsev <max.kazantsev@azul.com> | 2017-07-08 17:17:30 +0000 |
commit | b9edcbcb1dc9f87bfd31ec7f1e2c6a8baf66e8e8 (patch) | |
tree | be6558d79d74cdf88a0170aa100275229483d8ef /llvm/lib/Option/OptTable.cpp | |
parent | 15689aeae972263d15e7d9c8f0eae0de1062af20 (diff) | |
download | llvm-b9edcbcb1dc9f87bfd31ec7f1e2c6a8baf66e8e8.zip llvm-b9edcbcb1dc9f87bfd31ec7f1e2c6a8baf66e8e8.tar.gz llvm-b9edcbcb1dc9f87bfd31ec7f1e2c6a8baf66e8e8.tar.bz2 |
Re-enable "[IndVars] Canonicalize comparisons between non-negative values and indvars"
The patch was reverted due to a bug. The bug was that if the IV is the 2nd operand of the icmp
instruction, then the "Pred" variable gets swapped and differs from the instruction's predicate.
In this patch we use the original predicate to do the transformation.
Also added a test case that exercises this situation.
Differentian Revision: https://reviews.llvm.org/D35107
llvm-svn: 307477
Diffstat (limited to 'llvm/lib/Option/OptTable.cpp')
0 files changed, 0 insertions, 0 deletions