aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorSam Parker <sam.parker@arm.com>2019-05-21 07:56:47 +0000
committerSam Parker <sam.parker@arm.com>2019-05-21 07:56:47 +0000
commit3141bbd52d9815615e2c68cf24469ca39ddfc20d (patch)
treefe8b4769b2384b3db1e4a3a72058d9a385c78ee8 /clang/lib/CodeGen/CodeGenModule.h
parent295c19e948d29b33919a41792fff2ec7ba0c709b (diff)
downloadllvm-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