aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2023-01-27 14:09:25 +0000
committerFlorian Hahn <flo@fhahn.com>2023-01-27 14:09:26 +0000
commit72121a20cda4dc91d0ef5548f93046e71c5ec6f6 (patch)
tree28efc2307bdc1a36874050a79301dd86c0d3c85f /llvm/lib/CodeGen/StackProtector.cpp
parent977cddb95eac67a6dc6680a7d0fadee81114de11 (diff)
downloadllvm-72121a20cda4dc91d0ef5548f93046e71c5ec6f6.zip
llvm-72121a20cda4dc91d0ef5548f93046e71c5ec6f6.tar.gz
llvm-72121a20cda4dc91d0ef5548f93046e71c5ec6f6.tar.bz2
[SCCP] Use range info to prove AddInst has NSW flag.
This patch updates SCCP to use the value ranges of AddInst operands to try to prove the AddInst does not overflow in the signed sense and adds the NSW flag. The reasoning is done with makeGuaranteedNoWrapRegion (thanks @nikic for point it out!). Follow-ups will include extending this to more OverflowingBinaryOperators. Depends on D142387. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D142390
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions