Skip to content

Commit 6d5ee20

Browse files
committed
Adds HasV8Ops, FeatureDotProd to InlineAllowed
Fixes issue where functions are not inlined when caller has these features, but callee does not.
1 parent 125af56 commit 6d5ee20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/ARM/ARMTargetTransformInfo.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +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,
7374
ARM::FeatureVFP2, ARM::FeatureVFP3, ARM::FeatureNEON, ARM::FeatureThumb2,
7475
ARM::FeatureFP16, ARM::FeatureVFP4, ARM::FeatureFPARMv8,
7576
ARM::FeatureFullFP16, ARM::FeatureFP16FML, ARM::FeatureHWDivThumb,

0 commit comments

Comments
 (0)