diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-01-24 11:13:02 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-01-24 11:13:02 +0000 |
commit | 43e590e51ff943c4763f45552393d772decc5c86 (patch) | |
tree | f8ef5d87ca04efbafebb0df54326771481a0b60a /llvm/test/Transforms/LowerExpectIntrinsic/basic.ll | |
parent | c3bf5bd8cfe98deb5264ba7a5d65a068a5bbd65d (diff) | |
download | bcm5719-llvm-43e590e51ff943c4763f45552393d772decc5c86.tar.gz bcm5719-llvm-43e590e51ff943c4763f45552393d772decc5c86.zip |
[PM] Port LowerExpectIntrinsic to the new pass manager.
This just lifts the logic into a static helper function, sinks the
legacy pass to be a trivial wrapper of that helper fuction, and adds
a trivial wrapper for the new PM as well. Not much to see here.
I switched a test case to run in both modes, but we have to strip the
dead prototypes separately as that pass isn't in the new pass manager
(yet).
llvm-svn: 226999
Diffstat (limited to 'llvm/test/Transforms/LowerExpectIntrinsic/basic.ll')
-rw-r--r-- | llvm/test/Transforms/LowerExpectIntrinsic/basic.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Transforms/LowerExpectIntrinsic/basic.ll b/llvm/test/Transforms/LowerExpectIntrinsic/basic.ll index b15edc71514..f4326c8393c 100644 --- a/llvm/test/Transforms/LowerExpectIntrinsic/basic.ll +++ b/llvm/test/Transforms/LowerExpectIntrinsic/basic.ll @@ -1,4 +1,5 @@ ; RUN: opt -lower-expect -strip-dead-prototypes -S -o - < %s | FileCheck %s +; RUN: opt -S -passes=lower-expect < %s | opt -strip-dead-prototypes -S | FileCheck %s ; CHECK-LABEL: @test1( define i32 @test1(i32 %x) nounwind uwtable ssp { |