Skip to content

Commit 0fa1036

Browse files
committed
Fix comment
1 parent 17e29e0 commit 0fa1036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28973,7 +28973,7 @@ SDValue DAGCombiner::SimplifySelectCC(const SDLoc &DL, SDValue N0, SDValue N1,
2897328973
DAG.getSExtOrTrunc(CC == ISD::SETLT ? N3 : N2, DL, VT));
2897428974
}
2897528975

28976-
// Fold sign pattern select_cc setgt X, -1, 1, -1 -> (ashr X, BW-1), 1
28976+
// Fold sign pattern select_cc setgt X, -1, 1, -1 -> or (ashr X, BW-1), 1
2897728977
if (CC == ISD::SETGT && N1C && N2C && N3C && N1C->isAllOnes() &&
2897828978
N2C->isOne() && N3C->isAllOnes() &&
2897928979
!TLI.shouldAvoidTransformToShift(CmpOpVT,

0 commit comments

Comments
 (0)