aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-29 09:24:12 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-06-29 09:24:12 +0000
commit2d756c4feb69e4fe0ed8556e05bc2ff3c7bc1007 (patch)
tree7cb2e3a3960add4dcf4c8b9bec3f85aef1ff658b /llvm/lib/Support/APInt.cpp
parentb72664fd21cc1e25cd8420eb37eae3a701976394 (diff)
downloadllvm-2d756c4feb69e4fe0ed8556e05bc2ff3c7bc1007.zip
llvm-2d756c4feb69e4fe0ed8556e05bc2ff3c7bc1007.tar.gz
llvm-2d756c4feb69e4fe0ed8556e05bc2ff3c7bc1007.tar.bz2
[LFTR] Fix post-inc pointer IV with truncated exit count (PR41998)
Fixes https://bugs.llvm.org/show_bug.cgi?id=41998. Usually when we have a truncated exit count we'll truncate the IV when comparing against the limit, in which case exit count overflow in post-inc form doesn't matter. However, for pointer IVs we don't do that, so we have to be careful about incrementing the IV in the wide type. I'm fixing this by removing the IVCount variable (which was ExitCount or ExitCount+1) and replacing it with a UsePostInc flag, and then moving the actual limit adjustment to the individual cases (which are: pointer IV where we add to the wide type, integer IV where we add to the narrow type, and constant integer IV where we add to the wide type). Differential Revision: https://reviews.llvm.org/D63686 llvm-svn: 364709
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions