[llvm] r299279 - Fix a test to check assembly output instead of bitcode.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 31 16:22:19 PDT 2017


Author: pcc
Date: Fri Mar 31 18:22:19 2017
New Revision: 299279

URL: http://llvm.org/viewvc/llvm-project?rev=299279&view=rev
Log:
Fix a test to check assembly output instead of bitcode.

Modified:
    llvm/trunk/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll

Modified: llvm/trunk/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll?rev=299279&r1=299278&r2=299279&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll (original)
+++ llvm/trunk/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll Fri Mar 31 18:22:19 2017
@@ -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)




More information about the llvm-commits mailing list