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 8e2c2e5 commit ff6491bCopy full SHA for ff6491b
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -3778,9 +3778,8 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
3778
if (ReducedVectorElementCount.isFixed()) {
3779
unsigned VectorSize = ReducedVectorElementCount.getFixedValue();
3780
Type *SplatType = Splat->getType();
3781
- Value *Res =
3782
- Builder.CreateMul(Splat, ConstantInt::get(SplatType, VectorSize));
3783
- return replaceInstUsesWith(CI, Res);
+ return BinaryOperator::CreateMul(
+ Splat, ConstantInt::get(SplatType, VectorSize));
3784
}
3785
3786
0 commit comments