Skip to content

Commit f7a28af

Browse files
committed
[AArch64] Enable convertSetCCLogicToBitwiseLogic for scalar integers
It works just like it does on ARM.
1 parent 01d0171 commit f7a28af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ class AArch64TargetLowering : public TargetLowering {
365365
return true;
366366
}
367367

368+
bool convertSetCCLogicToBitwiseLogic(EVT VT) const override {
369+
return VT.isScalarInteger();
370+
}
371+
368372
bool isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const override;
369373

370374
bool hasAndNotCompare(SDValue V) const override {

0 commit comments

Comments
 (0)