aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2019-06-10 19:18:53 +0000
committerPhilip Reames <listmail@philipreames.com>2019-06-10 19:18:53 +0000
commita9633d5f0b3d56ae663bfffe74ee8db6464b96d6 (patch)
tree46672f1ce1ab4baa6c505e439cabcdfb01bf02e5 /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
parent9c7f93e9146af3222120f21847fbe88e2ecd68ca (diff)
downloadllvm-a9633d5f0b3d56ae663bfffe74ee8db6464b96d6.zip
llvm-a9633d5f0b3d56ae663bfffe74ee8db6464b96d6.tar.gz
llvm-a9633d5f0b3d56ae663bfffe74ee8db6464b96d6.tar.bz2
[LFTR] Use recomputed BE count
This was discussed as part of D62880. The basic thought is that computing BE taken count after widening should produce (on average) an equally good backedge taken count as the one before widening. Since there's only one test in the suite which is impacted by this change, and it's essentially equivelent codegen, that seems to be a reasonable assertion. This change was separated from r362971 so that if this turns out to be problematic, the triggering piece is obvious and easily revertable. For the nestedIV example from elim-extend.ll, we end up with the following BE counts: BEFORE: (-2 + (-1 * %innercount) + %limit) AFTER: (-1 + (sext i32 (-1 + %limit) to i64) + (-1 * (sext i32 %innercount to i64))<nsw>) Note that before is an i32 type, and the after is an i64. Truncating the i64 produces the i32. llvm-svn: 362975
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions