Skip to content

Commit 71ba087

Browse files
committed
Remove redundant inclusion for 0 (NFC)
If Add Constant is 0, return true anyway.
1 parent 837b2d4 commit 71ba087

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24805,15 +24805,15 @@ static bool isEquivalentMaskless(unsigned CC, unsigned width,
2480524805
case AArch64CC::GT:
2480624806
if ((AddConstant == 0) ||
2480724807
(CompConstant == MaxUInt - 1 && AddConstant < 0) ||
24808-
(AddConstant >= 0 && CompConstant < 0) ||
24809-
(AddConstant <= 0 && CompConstant <= 0 && CompConstant < AddConstant))
24808+
(AddConstant > 0 && CompConstant < 0) ||
24809+
(AddConstant < 0 && CompConstant <= 0 && CompConstant < AddConstant))
2481024810
return true;
2481124811
break;
2481224812
case AArch64CC::LT:
2481324813
case AArch64CC::GE:
2481424814
if ((AddConstant == 0) ||
24815-
(AddConstant >= 0 && CompConstant <= 0) ||
24816-
(AddConstant <= 0 && CompConstant <= 0 && CompConstant <= AddConstant))
24815+
(AddConstant > 0 && CompConstant <= 0) ||
24816+
(AddConstant < 0 && CompConstant <= 0 && CompConstant <= AddConstant))
2481724817
return true;
2481824818
break;
2481924819
case AArch64CC::HI:

0 commit comments

Comments
 (0)