llvm.org GIT mirror llvm / 9f0f7be
[PGOProfile] Rename a test to make it more reusable, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265144 91177308-0d34-0410-b5e6-96231b3b80d8 Vedant Kumar 3 years ago
2 changed file(s) with 17 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: opt < %s -pgo-instr-gen -S | FileCheck %s
1
2 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-apple-macosx10.12.0"
4
5 define i32 @f1() {
6 ; CHECK-LABEL: @f1
7 entry:
8 ; CHECK: call void @llvm.instrprof.increment
9 ; CHECK-NOT: ptrtoint void (i8*)* asm sideeffect
10 ; CHECK-NOT: call void @llvm.instrprof.value.profile
11 ; CHECK: tail call void asm sideeffect
12 tail call void asm sideeffect "", "imr,~{memory},~{dirflag},~{fpsr},~{flags}"(i8* undef) #0
13 ret i32 0
14 }
15
16 attributes #0 = { nounwind }
+0
-16
test/Transforms/PGOProfile/inlineasm.ll less more
None ; RUN: opt < %s -pgo-instr-gen -S | FileCheck %s
1
2 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-apple-macosx10.12.0"
4
5 define i32 @main() {
6 entry:
7 ; CHECK: call void @llvm.instrprof.increment
8 ; CHECK-NOT: ptrtoint void (i8*)* asm sideeffect
9 ; CHECK-NOT: call void @llvm.instrprof.value.profile
10 ; CHECK: tail call void asm sideeffect
11 tail call void asm sideeffect "", "imr,~{memory},~{dirflag},~{fpsr},~{flags}"(i8* undef) #0
12 ret i32 0
13 }
14
15 attributes #0 = { nounwind }