Skip to content

Commit a282c68

Browse files
committed
[X86] combineX86AddSub - pull out repeated getOperand() call. NFC.
1 parent 23104a7 commit a282c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57447,7 +57447,7 @@ static SDValue combineX86AddSub(SDNode *N, SelectionDAG &DAG,
5744757447
bool IsSub = X86ISD::SUB == N->getOpcode();
5744857448
unsigned GenericOpc = IsSub ? ISD::SUB : ISD::ADD;
5744957449

57450-
if (IsSub && isOneConstant(N->getOperand(1)) && !N->hasAnyUseOfValue(0))
57450+
if (IsSub && isOneConstant(RHS) && !N->hasAnyUseOfValue(0))
5745157451
if (SDValue CMP = combineX86SubCmpForFlags(N, SDValue(N, 1), DAG, DCI, ST))
5745257452
return CMP;
5745357453

0 commit comments

Comments
 (0)