summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LowerExpectIntrinsic/basic.ll
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-24 11:13:02 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-24 11:13:02 +0000
commit43e590e51ff943c4763f45552393d772decc5c86 (patch)
treef8ef5d87ca04efbafebb0df54326771481a0b60a /llvm/test/Transforms/LowerExpectIntrinsic/basic.ll
parentc3bf5bd8cfe98deb5264ba7a5d65a068a5bbd65d (diff)
downloadbcm5719-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.ll1
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 {
OpenPOWER on IntegriCloud