summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-opt-report/OptReport.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-19 17:53:56 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-03-19 17:53:56 +0000
commit208381953b29fb796438083958c66c2b9fa90baa (patch)
tree9d51500972e7f014f4fa8d15103172d343d786b3 /llvm/tools/llvm-opt-report/OptReport.cpp
parentafd1a23ffb213277139cf8c15023f327635433bb (diff)
downloadbcm5719-llvm-208381953b29fb796438083958c66c2b9fa90baa.tar.gz
bcm5719-llvm-208381953b29fb796438083958c66c2b9fa90baa.zip
[ValueTracking] Use computeConstantRange() for unsigned add/sub overflow
Improve computeOverflowForUnsignedAdd/Sub in ValueTracking by intersecting the computeConstantRange() result into the ConstantRange created from computeKnownBits(). This allows us to detect some additional never/always overflows conditions that can't be determined from known bits. This revision also adds basic handling for constants to computeConstantRange(). Non-splat vectors will be handled in a followup. The signed case will also be handled in a followup, as it needs some more groundwork. Differential Revision: https://reviews.llvm.org/D59386 llvm-svn: 356489
Diffstat (limited to 'llvm/tools/llvm-opt-report/OptReport.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud