Skip to content

Commit 4213204

Browse files
ecnelisesmemfrob
authored andcommitted
[PowerPC] Fix typo in vector shuffle combining
a22ecb4 fixed a crash on big endian subtargets. This commit fixes a typo in that commit which may cause miscompile.
1 parent 01d0a0d commit 4213204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14530,7 +14530,7 @@ SDValue PPCTargetLowering::combineVectorShuffle(ShuffleVectorSDNode *SVN,
1453014530
unsigned ValidLaneWidth =
1453114531
SToVLHS ? SToVLHS.getValueType().getScalarSizeInBits() /
1453214532
LHS.getValueType().getScalarSizeInBits()
14533-
: SToVRHS.getValueType().getVectorNumElements() /
14533+
: SToVRHS.getValueType().getScalarSizeInBits() /
1453414534
RHS.getValueType().getScalarSizeInBits();
1453514535

1453614536
// Initially assume that neither input is permuted. These will be adjusted

0 commit comments

Comments
 (0)