Skip to content

Commit 3b1f464

Browse files
committed
Move the condition forward
1 parent 9f215be commit 3b1f464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19895,8 +19895,8 @@ bool RISCVTargetLowering::isDesirableToCommuteWithShift(
1989519895

1989619896
bool RISCVTargetLowering::isDesirableToHoistLogicOpWithExt(
1989719897
const SDNode *LogicOp, unsigned ExtOp) const {
19898-
if (NodeExtensionHelper::isSupportedRoot(LogicOp, Subtarget) &&
19899-
(ExtOp == ISD::ZERO_EXTEND || ExtOp == ISD::SIGN_EXTEND))
19898+
if ((ExtOp == ISD::ZERO_EXTEND || ExtOp == ISD::SIGN_EXTEND) &&
19899+
NodeExtensionHelper::isSupportedRoot(LogicOp, Subtarget))
1990019900
return false;
1990119901
return true;
1990219902
}

0 commit comments

Comments
 (0)