llvm.org GIT mirror llvm / 61a230e
Fix a test to check assembly output instead of bitcode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299279 91177308-0d34-0410-b5e6-96231b3b80d8 Peter Collingbourne 2 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
None ; RUN: opt < %s -adce | FileCheck %s
1 ; RUN: opt < %s -passes=adce | FileCheck %s
0 ; RUN: opt < %s -adce -S | FileCheck %s
1 ; RUN: opt < %s -passes=adce -S | FileCheck %s
22
33 ; Verify that a call to instrument a constant is deleted.
44
66 @__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
77
88 define i32 @foo() {
9 ; CHECK-NOT: __llvm_profile_instrument_target
9 ; CHECK-NOT: call void @__llvm_profile_instrument_target
1010 entry:
1111 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)
1212 %call = tail call i32 @bar(i32 21)