Fixes PR41273
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
We don't need a full permutation of the possibilities, but can you add at least a few test variations and improvements:
- The 2nd param is 'false'.
- The type is a vector.
- Run '-instnamer' or manually add variable names, so we don't have nameless values.
- Pre-commit the baseline versions of the tests.
- Add a comment/link for PR41273 (should also mention that in the description/commit message).
Comment Actions
LGTM - thanks!
lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
1333–1336 | Might be less hassle to not to use the builder directly: Intrinsic::ID ID = IsTZ ? Intrinsic::ctlz : Intrinsic::cttz; Function *F = Intrinsic::getDeclaration(II.getModule(), ID, II.getType()); return CallInst::Create(F, { X, II.getArgOperand(1) }); |
Might be less hassle to not to use the builder directly: