aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorchoikwa <5455710+choikwa@users.noreply.github.com>2024-11-20 11:22:09 -0500
committerGitHub <noreply@github.com>2024-11-20 11:22:09 -0500
commitb8e1d4dbea8905e48d51a70bf75cb8fababa4a60 (patch)
treef0d93ab996dfb4a9718c7f1877982a9b9cfbaffc /llvm/lib/Bitcode
parent9d5b3c80175da59728d13c779051eaf5311c64f7 (diff)
downloadllvm-b8e1d4dbea8905e48d51a70bf75cb8fababa4a60.zip
llvm-b8e1d4dbea8905e48d51a70bf75cb8fababa4a60.tar.gz
llvm-b8e1d4dbea8905e48d51a70bf75cb8fababa4a60.tar.bz2
[AMDGPU] prevent shrinking udiv/urem if either operand is in (SignedMax,UnsignedMax] (#116733)
Do this by using ComputeKnownBits and checking for !isNonNegative and isUnsigned. This rejects shrinking unsigned div/rem if operands exceed smax_bitwidth since we know NumSignBits will be always 0.
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions