Skip to content

Commit cbc085d

Browse files
Dinar TemirbulatovDinar Temirbulatov
authored andcommitted
Removed isConstantSplatVector duplicates.
1 parent ccab06a commit cbc085d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17927,13 +17927,11 @@ static SDValue tryCombineToBSL(SDNode *N, TargetLowering::DAGCombinerInfo &DCI,
1792717927
} else
1792817928
continue;
1792917929

17930-
if (!ISD::isConstantSplatVectorAllZeros(Sub.getOperand(0).getNode()) &&
17931-
!ISD::isConstantSplatVectorAllZeros(Sub.getOperand(0).getNode()))
17930+
if (!ISD::isConstantSplatVectorAllZeros(Sub.getOperand(0).getNode()))
1793217931
continue;
1793317932

1793417933
// Constant ones is always righthand operand of the Add.
17935-
if (!ISD::isConstantSplatVectorAllOnes(Add.getOperand(1).getNode()) &&
17936-
!ISD::isConstantSplatVectorAllOnes(Add.getOperand(1).getNode()))
17934+
if (!ISD::isConstantSplatVectorAllOnes(Add.getOperand(1).getNode()))
1793717935
continue;
1793817936

1793917937
if (Sub.getOperand(1) != Add.getOperand(0))

0 commit comments

Comments
 (0)