[all-commits] [llvm/llvm-project] daf897: [IR] Check for SignedMin/-1 division in canTrap() ...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Fri Jun 17 02:25:27 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: daf897d559fcc4fdc88812941aba83ab05463e11
https://github.com/llvm/llvm-project/commit/daf897d559fcc4fdc88812941aba83ab05463e11
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-06-17 (Fri, 17 Jun 2022)
Changed paths:
M llvm/lib/IR/Constants.cpp
M llvm/test/Transforms/SimplifyCFG/ConditionalTrappingConstantExpr.ll
Log Message:
-----------
[IR] Check for SignedMin/-1 division in canTrap() (PR56038)
In addition to division by zero, signed division also traps for
SignedMin / -1. This was handled in isSafeToSpeculativelyExecute(),
but not in Constant::canTrap().
More information about the All-commits
mailing list