summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/add-debug.ll
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2018-03-27 07:30:38 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2018-03-27 07:30:38 +0000
commit7094c8deb2b2bc0a5a4b79f5a5cc195bf4e1d5ca (patch)
tree70c5cdcf3057d66d3a4425049b150a98ad16a87b /llvm/test/CodeGen/AMDGPU/add-debug.ll
parent3ddeb33e0017209792e72b33dee1a0ba69b316f1 (diff)
downloadbcm5719-llvm-7094c8deb2b2bc0a5a4b79f5a5cc195bf4e1d5ca.tar.gz
bcm5719-llvm-7094c8deb2b2bc0a5a4b79f5a5cc195bf4e1d5ca.zip
[SCEV] Make exact taken count calculation more optimistic
Currently, `getExact` fails if it sees two exit counts in different blocks. There is no solid reason to do so, given that we only calculate exact non-taken count for exiting blocks that dominate latch. Using this fact, we can simply take min out of all exits of all blocks to get the exact taken count. This patch makes the calculation more optimistic with enforcing our assumption with asserts. It allows us to calculate exact backedge taken count in trivial loops like for (int i = 0; i < 100; i++) { if (i > 50) break; . . . } Differential Revision: https://reviews.llvm.org/D44676 Reviewed By: fhahn llvm-svn: 328611
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/add-debug.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud