diff options
author | Sam Parker <sam.parker@arm.com> | 2019-05-21 07:56:47 +0000 |
---|---|---|
committer | Sam Parker <sam.parker@arm.com> | 2019-05-21 07:56:47 +0000 |
commit | 3141bbd52d9815615e2c68cf24469ca39ddfc20d (patch) | |
tree | fe8b4769b2384b3db1e4a3a72058d9a385c78ee8 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 295c19e948d29b33919a41792fff2ec7ba0c709b (diff) | |
download | llvm-3141bbd52d9815615e2c68cf24469ca39ddfc20d.zip llvm-3141bbd52d9815615e2c68cf24469ca39ddfc20d.tar.gz llvm-3141bbd52d9815615e2c68cf24469ca39ddfc20d.tar.bz2 |
[ARM][CGP] Skip nuw in PrepareConstants
PrepareConstants step converts add/sub with 'negative' immediates to
sub/add with a 'positive' imm to make promotion more simple. nuw
already states that the add shouldn't cause an unsigned wrap, so
it shouldn't need any tweaking. Plus, we also don't allow a sub with
a 'negative' immediate to be safe wrap, so this functionality has
been removed. The PrepareConstants step now just handles the add
instructions that we've determined would be safe if they wrap around
zero.
Differential Revision: https://reviews.llvm.org/D62057
llvm-svn: 361227
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions