Skip to content

Commit 90892db

Browse files
committed
[ARM] Allow usubo and uaddo to happen for any legal type
1 parent 43f9017 commit 90892db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/ARM/ARMISelLowering.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,9 @@ class VectorType;
641641

642642
bool shouldFormOverflowOp(unsigned Opcode, EVT VT,
643643
bool MathUsed) const override {
644-
// Using overflow ops for overflow checks only should beneficial on ARM.
645-
return TargetLowering::shouldFormOverflowOp(Opcode, VT, true);
644+
if (VT.isVector())
645+
return false;
646+
return !isOperationExpand(Opcode, VT);
646647
}
647648

648649
bool shouldReassociateReduction(unsigned Opc, EVT VT) const override {

0 commit comments

Comments
 (0)