Skip to content

Commit 7fce4f7

Browse files
committed
Make flags register explicit.
1 parent d84b0c3 commit 7fce4f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26592,13 +26592,13 @@ performSignExtendInRegCombine(SDNode *N, TargetLowering::DAGCombinerInfo &DCI,
2659226592
SDValue TVal = Src.getOperand(0);
2659326593
SDValue FVal = Src.getOperand(1);
2659426594

26595-
// SIGN_EXTEND_INREG (CSEL 0, 1, cc), i1 --> CSEL 0, -1, cc
26595+
// SIGN_EXTEND_INREG (CSEL 0, 1, cc, NZCV), i1 --> CSEL 0, -1, cc, NZCV
2659626596
if (isNullConstant(TVal) && isOneConstant(FVal))
2659726597
return DAG.getNode(AArch64ISD::CSEL, DL, VT, TVal,
2659826598
DAG.getAllOnesConstant(DL, VT), Src.getOperand(2),
2659926599
Src.getOperand(3));
2660026600

26601-
// SIGN_EXTEND_INREG (CSEL 1, 0, cc), i1 --> CSEL -1, 0, cc
26601+
// SIGN_EXTEND_INREG (CSEL 1, 0, cc, NZCV), i1 --> CSEL -1, 0, cc, NZCV
2660226602
if (isOneConstant(TVal) && isNullConstant(FVal))
2660326603
return DAG.getNode(AArch64ISD::CSEL, DL, VT,
2660426604
DAG.getAllOnesConstant(DL, VT), FVal,

0 commit comments

Comments
 (0)