Skip to content

Commit 45a393b

Browse files
committed
Adds BF16 and SB to InlineFeaturesAllowed
These features being present in the caller and not the callee should not prevent a function from being inlined.
1 parent c1af548 commit 45a393b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/ARMTargetTransformInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ARMTTIImpl final : public BasicTTIImplBase<ARMTTIImpl> {
7070
// -thumb-mode in a caller with +thumb-mode, may cause the assembler to
7171
// fail if the callee uses ARM only instructions, e.g. in inline asm.
7272
const FeatureBitset InlineFeaturesAllowed = {
73-
ARM::FeatureDotProd, ARM::HasV8Ops,
73+
ARM::FeatureDotProd, ARM::HasV8Ops, ARM::FeatureBF16, ARM::FeatureSB,
7474
ARM::FeatureVFP2, ARM::FeatureVFP3, ARM::FeatureNEON, ARM::FeatureThumb2,
7575
ARM::FeatureFP16, ARM::FeatureVFP4, ARM::FeatureFPARMv8,
7676
ARM::FeatureFullFP16, ARM::FeatureFP16FML, ARM::FeatureHWDivThumb,

0 commit comments

Comments
 (0)