Skip to content

Commit 06d7aac

Browse files
committed
Address review comment: Shorter syntax for type check during ISel
1 parent 1b2d1a7 commit 06d7aac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7708,7 +7708,7 @@ bool AArch64DAGToDAGISel::SelectCmpBranchExtOperand(SDValue N, SDValue &Reg,
77087708
// Use an invalid shift-extend value to indicate we don't need to extend later
77097709
if (N.getOpcode() == ISD::AssertZext || N.getOpcode() == ISD::AssertSext) {
77107710
EVT Ty = cast<VTSDNode>(N.getOperand(1))->getVT();
7711-
if ((MatchCBB && Ty != MVT::i8) || (!MatchCBB && Ty != MVT::i16))
7711+
if (Ty != (MatchCBB ? MVT::i8 : MVT::i16))
77127712
return false;
77137713
Reg = N.getOperand(0);
77147714
ExtType = CurDAG->getSignedTargetConstant(AArch64_AM::InvalidShiftExtend,

0 commit comments

Comments
 (0)