diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-12-27 08:13:45 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-12-27 08:13:45 +0000 |
commit | f49f1a87ef49150c33d0810b3e8b0d56e56f3d1f (patch) | |
tree | 188e517b88a15913e5dcfb59034e582281b34d5f /llvm/test/Transforms/FunctionAttrs | |
parent | 48a065d2eaba92c5c1221dc32810522b7aad6745 (diff) | |
download | bcm5719-llvm-f49f1a87ef49150c33d0810b3e8b0d56e56f3d1f.tar.gz bcm5719-llvm-f49f1a87ef49150c33d0810b3e8b0d56e56f3d1f.zip |
[attrs] Split off the forced attributes utility into its own pass that
is (by default) run much earlier than FuncitonAttrs proper.
This allows forcing optnone or other widely impactful attributes. It is
also a bit simpler as the force attribute behavior needs no specific
iteration order.
I've added the pass into the default module pass pipeline and LTO pass
pipeline which mirrors where function attrs itself was being run.
Differential Revision: http://reviews.llvm.org/D15668
llvm-svn: 256465
Diffstat (limited to 'llvm/test/Transforms/FunctionAttrs')
-rw-r--r-- | llvm/test/Transforms/FunctionAttrs/forced.ll | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/test/Transforms/FunctionAttrs/forced.ll b/llvm/test/Transforms/FunctionAttrs/forced.ll deleted file mode 100644 index d0bdb155a20..00000000000 --- a/llvm/test/Transforms/FunctionAttrs/forced.ll +++ /dev/null @@ -1,12 +0,0 @@ -; RUN: opt < %s -S -functionattrs | FileCheck %s --check-prefix=CHECK-CONTROL -; RUN: opt < %s -S -functionattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO - -; CHECK-CONTROL: define void @foo() #0 { -; CHECK-FOO: define void @foo() #0 { -define void @foo() { - ret void -} - - -; CHECK-CONTROL: attributes #0 = { norecurse readnone } -; CHECK-FOO: attributes #0 = { noinline norecurse readnone } |