[llvm] [InstCombine] Restrict `foldBitCeil` to power-of-two integer widths (PR #173849)
Yunbo Ni via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 29 03:39:51 PST 2025
================
@@ -3871,6 +3871,9 @@ static Instruction *foldBitCeil(SelectInst &SI, IRBuilderBase &Builder,
ShouldDropNoWrap))
return nullptr;
+ if (!isPowerOf2_32(BitWidth))
+ return nullptr;
----------------
cardigan1008 wrote:
Done, tks.
https://github.com/llvm/llvm-project/pull/173849
More information about the llvm-commits
mailing list