Skip to content

Commit b4f6aec

Browse files
committed
fixup! Add comment.
1 parent 002dabc commit b4f6aec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7950,6 +7950,8 @@ LegalizerHelper::lowerThreewayCompare(MachineInstr &MI) {
79507950
} else {
79517951
if (BC == TargetLowering::ZeroOrNegativeOneBooleanContent)
79527952
std::swap(IsGT, IsLT);
7953+
// Extend boolean results to DstTy, which is at least i2, before subtracting
7954+
// them.
79537955
unsigned BoolExtOp =
79547956
MIRBuilder.getBoolExtOp(DstTy.isVector(), /*isFP=*/false);
79557957
IsGT = MIRBuilder.buildInstr(BoolExtOp, {DstTy}, {IsGT});

0 commit comments

Comments
 (0)