aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader
diff options
context:
space:
mode:
authorHongyu Chen <xxs_chy@outlook.com>2025-11-06 15:33:38 +0800
committerGitHub <noreply@github.com>2025-11-06 15:33:38 +0800
commit1c756932e9968d5843801fec77920e3b44036370 (patch)
tree48fe82492a49fe5968e413ac424cc6964d1f29c0 /llvm/lib/Bitcode/Reader
parent9100c9212db83321762d709e8fb225030899924e (diff)
downloadllvm-1c756932e9968d5843801fec77920e3b44036370.zip
llvm-1c756932e9968d5843801fec77920e3b44036370.tar.gz
llvm-1c756932e9968d5843801fec77920e3b44036370.tar.bz2
[DAGCombiner] Bail out if BitWidthDiff > BitWidth when folding cltz(and) - BitWidthDiff (#166607)
Fixes https://github.com/llvm/llvm-project/issues/166596 We cannot use `APInt::isMask` if `numBits` exceeds the bitwidth of APInt or `numBits` is zero. We avoid such a case by guaranteeing BitWidthDiff < BitWidth.
Diffstat (limited to 'llvm/lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions