Skip to content

Commit 613fdac

Browse files
committed
add comment
1 parent 3fc0b9a commit 613fdac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9803,6 +9803,8 @@ SDValue PPCTargetLowering::LowerBUILD_VECTOR(SDValue Op,
98039803
// If the sign extended value is in the range [-16,15], use VSPLTI[bhw].
98049804
// Use VSPLTIW/VUPKLSW for v2i64 in range [-16,15].
98059805
if (SextVal >= -16 && SextVal <= 15) {
9806+
// SplatSize may be 1, 2, 4, or 8. Use size 4 instead of 8 for the splat to
9807+
// generate a splat word with extend for size 8.
98069808
unsigned UseSize = SplatSize == 8 ? 4 : SplatSize;
98079809
SDValue Res =
98089810
getCanonicalConstSplat(SextVal, UseSize, Op.getValueType(), DAG, dl);

0 commit comments

Comments
 (0)