diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-03-31 23:22:19 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-03-31 23:22:19 +0000 |
commit | 3420e4bf94e1a7b52772ab71ee38288ef334ebab (patch) | |
tree | 8971dcae690c349b4006329badd133ad75691e85 | |
parent | 60a245e0ffc94a877f1a2e826c310a91a38d3e62 (diff) | |
download | bcm5719-llvm-3420e4bf94e1a7b52772ab71ee38288ef334ebab.tar.gz bcm5719-llvm-3420e4bf94e1a7b52772ab71ee38288ef334ebab.zip |
Fix a test to check assembly output instead of bitcode.
llvm-svn: 299279
-rw-r--r-- | llvm/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll b/llvm/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll index a61e8f8cacc..804b3dd67f2 100644 --- a/llvm/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll +++ b/llvm/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -adce | FileCheck %s -; RUN: opt < %s -passes=adce | FileCheck %s +; RUN: opt < %s -adce -S | FileCheck %s +; RUN: opt < %s -passes=adce -S | FileCheck %s ; Verify that a call to instrument a constant is deleted. @@ -7,7 +7,7 @@ @__profd_foo = private global { i64, i64, i64*, i8*, i8*, i32, [1 x i16] } { i64 6699318081062747564, i64 0, i64* getelementptr inbounds ([1 x i64], [1 x i64]* @__profc_foo, i32 0, i32 0), i8* bitcast (i32 ()* @foo to i8*), i8* null, i32 1, [1 x i16] [i16 1] }, section "__llvm_prf_data", align 8 define i32 @foo() { -; CHECK-NOT: __llvm_profile_instrument_target +; CHECK-NOT: call void @__llvm_profile_instrument_target entry: tail call void @__llvm_profile_instrument_target(i64 ptrtoint (i32 (i32)* @bar to i64), i8* bitcast ({ i64, i64, i64*, i8*, i8*, i32, [1 x i16] }* @__profd_foo to i8*), i32 0) %call = tail call i32 @bar(i32 21) |