Skip to content

Commit 9682dc3

Browse files
committed
Fixes
Created using spr 1.3.5
1 parent 10ae9d7 commit 9682dc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20761,8 +20761,8 @@ class HorizontalReduction {
2076120761
Vec = Builder.CreateIntCast(
2076220762
Vec, getWidenedType(DestTy, getNumElements(Vec->getType())),
2076320763
IsSigned);
20764-
Value *Scale =
20765-
ConstantVector::getSplat(EC, ConstantInt::get(DestTy->getScalarType(), Cnt));
20764+
Value *Scale = ConstantVector::getSplat(
20765+
EC, ConstantInt::get(DestTy->getScalarType(), Cnt));
2076620766
LLVM_DEBUG(dbgs() << "SLP: Add (to-mul) " << Cnt << "of " << Vec
2076720767
<< ". (HorRdx)\n");
2076820768
++NumVectorInstructions;
@@ -20827,7 +20827,7 @@ class HorizontalReduction {
2082720827
}
2082820828
if (VecRes->getType()->getScalarType() != DestTy->getScalarType())
2082920829
VecRes = Builder.CreateIntCast(
20830-
VecRes, getWidenedType(DestTy, getNumElements(Vec->getType())),
20830+
VecRes, getWidenedType(DestTy, getNumElements(VecRes->getType())),
2083120831
VecResSignedness);
2083220832
if (ScalarTy != DestTy->getScalarType())
2083320833
Vec = Builder.CreateIntCast(

0 commit comments

Comments
 (0)