Skip to content

Commit ae76cad

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ class AArch64TargetLowering : public TargetLowering {
328328

329329
bool shouldFormOverflowOp(unsigned Opcode, EVT VT,
330330
bool MathUsed) const override {
331-
// Using overflow ops for overflow checks only should beneficial on
332-
// AArch64.
333-
return TargetLowering::shouldFormOverflowOp(Opcode, VT, true);
331+
if (VT.isVector())
332+
return false;
333+
return !isOperationExpand(Opcode, VT);
334334
}
335335

336336
Value *emitLoadLinked(IRBuilderBase &Builder, Type *ValueTy, Value *Addr,

0 commit comments

Comments
 (0)