Skip to content

Commit 328d2f7

Browse files
committed
Update AArch64ISelLowering.cpp
1 parent eb6caf8 commit 328d2f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3757,6 +3757,9 @@ static SDValue emitComparison(SDValue LHS, SDValue RHS, ISD::CondCode CC,
37573757
Opcode = AArch64ISD::ANDS;
37583758
RHS = LHS.getOperand(1);
37593759
LHS = LHS.getOperand(0);
3760+
} else if (LHS.getOpcode() == AArch64ISD::ANDS) {
3761+
// Use result of ANDS
3762+
return LHS.getValue(1);
37603763
}
37613764
}
37623765

0 commit comments

Comments
 (0)