Skip to content

Commit 8c4d687

Browse files
committed
[ARM] Override hasAndNotCompare
bics is available on ARM.
1 parent 7dfcced commit 8c4d687

File tree

5 files changed

+235
-281
lines changed

5 files changed

+235
-281
lines changed

llvm/lib/Target/ARM/ARMISelLowering.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,11 @@ class VectorType;
609609

610610
bool isMaskAndCmp0FoldingBeneficial(const Instruction &AndI) const override;
611611

612+
bool hasAndNotCompare(SDValue V) const override {
613+
// We can use bics for any scalar.
614+
return V.getValueType().isScalarInteger();
615+
}
616+
612617
bool
613618
isShuffleMaskLegal(ArrayRef<int> M, EVT VT) const override;
614619
bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const override;

0 commit comments

Comments
 (0)