summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PatchableFunction.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-17 21:25:26 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-03-17 21:25:26 +0000
commit322e2dbee128c091e0a9c24a0348c4d7c8e3b7d7 (patch)
treebfbd8b38033ded377a6a018bb8db266bcc7de398 /llvm/lib/CodeGen/PatchableFunction.cpp
parentaffead9ad0a03ea9eecc80fe5e94e4e3b6090e74 (diff)
downloadbcm5719-llvm-322e2dbee128c091e0a9c24a0348c4d7c8e3b7d7.tar.gz
bcm5719-llvm-322e2dbee128c091e0a9c24a0348c4d7c8e3b7d7.zip
[ValueTracking] Use ConstantRange overflow check for signed add; NFC
This is the same change as rL356290, but for signed add. It replaces the existing ripple logic with the overflow logic in ConstantRange. This is NFC in that it should return NeverOverflow in exactly the same cases as the previous implementation. However, it does make computeOverflowForSignedAdd() more powerful by now also determining AlwaysOverflows conditions. As none of its consumers handle this yet, this has no impact on optimization. Making use of AlwaysOverflows in with.overflow folding will be handled as a followup. Differential Revision: https://reviews.llvm.org/D59450 llvm-svn: 356345
Diffstat (limited to 'llvm/lib/CodeGen/PatchableFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud