Skip to content

Commit fd8b6e1

Browse files
committed
[X86] Use explicit X86::CondCode argument in EmitTest/EmitCmp calls. NFC.
Helps identify the enum code during debugging.
1 parent cdeeb39 commit fd8b6e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22975,7 +22975,7 @@ static bool isProfitableToUseFlagOp(SDValue Op) {
2297522975

2297622976
/// Emit nodes that will be selected as "test Op0,Op0", or something
2297722977
/// equivalent.
22978-
static SDValue EmitTest(SDValue Op, unsigned X86CC, const SDLoc &dl,
22978+
static SDValue EmitTest(SDValue Op, X86::CondCode X86CC, const SDLoc &dl,
2297922979
SelectionDAG &DAG, const X86Subtarget &Subtarget) {
2298022980
// CF and OF aren't always set the way we want. Determine which
2298122981
// of these we need.
@@ -23085,7 +23085,7 @@ static SDValue EmitTest(SDValue Op, unsigned X86CC, const SDLoc &dl,
2308523085

2308623086
/// Emit nodes that will be selected as "cmp Op0,Op1", or something
2308723087
/// equivalent.
23088-
static SDValue EmitCmp(SDValue Op0, SDValue Op1, unsigned X86CC,
23088+
static SDValue EmitCmp(SDValue Op0, SDValue Op1, X86::CondCode X86CC,
2308923089
const SDLoc &dl, SelectionDAG &DAG,
2309023090
const X86Subtarget &Subtarget) {
2309123091
if (isNullConstant(Op1))

0 commit comments

Comments
 (0)