]> granicus.if.org Git - llvm/commit
[AArch64] Inline callee if its target-features are a subset of the caller
authorFlorian Hahn <florian.hahn@arm.com>
Tue, 27 Jun 2017 22:27:32 +0000 (22:27 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Tue, 27 Jun 2017 22:27:32 +0000 (22:27 +0000)
commit240a1f8074a4c97c0909fbc31232103a3ba91cce
tree89f0a0e08871bd897130bbbd78cb7b8996b9a8f8
parent607969f748ffb59b0dbcf9a6aa22ebf0a20bd70f
[AArch64] Inline callee if its target-features are a subset of the caller

Summary:
Similar to X86, it should be safe to inline callees if their target-features
are a subset of the caller. This change matches GCC's inlining behavior
with respect to attributes [1].

[1] https://gcc.gnu.org/onlinedocs/gcc/AArch64-Function-Attributes.html#AArch64-Function-Attributes

Reviewers: kristof.beyls, javed.absar, rengolin, t.p.northover

Reviewed By: t.p.northover

Subscribers: aemerson, eraman, llvm-commits

Differential Revision: https://reviews.llvm.org/D34698

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306478 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
lib/Target/AArch64/AArch64TargetTransformInfo.h
test/Transforms/Inline/AArch64/inline-target-attr.ll [new file with mode: 0644]