[PATCH] D156821: [CodeGen] [ubsan] Respect integer overflow handling in abs builtin
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 8 05:05:29 PDT 2023
aaron.ballman added reviewers: efriedma, rjmccall, rsmith.
aaron.ballman added a comment.
Adding codegen and ubsan code owners for opinions.
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:1791
+ // Try to eliminate overflow check.
+ if (auto *VCI = dyn_cast<llvm::ConstantInt>(ArgValue)) {
+ if (!VCI->isMinSignedValue()) {
----------------
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156821/new/
https://reviews.llvm.org/D156821
More information about the cfe-commits
mailing list