We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c5a81 commit 32769c7Copy full SHA for 32769c7
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -3263,9 +3263,9 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
3263
if (!UO || isa<Argument>(UO))
3264
continue;
3265
3266
- auto Known = computeKnownBits(RK.WasOn, 0, nullptr);
3267
- unsigned KnownAlign = 1 << Known.countMinTrailingZeros();
3268
- if (KnownAlign < RK.ArgValue)
+ KnownBits Known = computeKnownBits(RK.WasOn, 0, nullptr);
+ unsigned TZ = std::min(Known.countMinTrailingZeros(), 63);
+ if ((1ULL << TZ) < RK.ArgValue)
3269
3270
auto *New = CallBase::removeOperandBundle(II, OBU.getTagID());
3271
return New;
0 commit comments