Skip to content

Commit

Permalink
[test] Migrate PGO related -instrprof tests to new PM
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Jul 16, 2022
1 parent 59fafdd commit 8658cf9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion llvm/test/DebugInfo/debugify-each.ll
Expand Up @@ -9,7 +9,7 @@
; RUN: FileCheck %s -input-file=%t -check-prefix=MODULE-PASS
; RUN: FileCheck %s -input-file=%t -check-prefix=FUNCTION-PASS

; RUN: opt -debugify-each -instrprof -instrprof -sroa -sccp -S -o /dev/null < %s 2> %t
; RUN: opt -debugify-each -passes=instrprof,instrprof,sroa,sccp -S -o /dev/null < %s 2> %t
; RUN: FileCheck %s -input-file=%t -check-prefix=MODULE-PASS
; RUN: FileCheck %s -input-file=%t -check-prefix=FUNCTION-PASS

Expand Down
@@ -1,4 +1,3 @@
; RUN: opt < %s -instrprof -do-counter-promotion=true -speculative-counter-promotion-max-exiting=3 -S | FileCheck --check-prefix=PROMO %s
; RUN: opt < %s --passes=instrprof -do-counter-promotion=true -speculative-counter-promotion-max-exiting=3 -S | FileCheck --check-prefix=PROMO %s

$__llvm_profile_raw_version = comdat any
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/PGOProfile/counter_promo_with_bias.ll
@@ -1,4 +1,4 @@
; RUN: opt < %s -instrprof -runtime-counter-relocation -do-counter-promotion=true -S | FileCheck %s
; RUN: opt < %s -passes=instrprof -runtime-counter-relocation -do-counter-promotion=true -S | FileCheck %s

target triple = "x86_64-unknown-linux-gnu"

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/Transforms/PGOProfile/infinite_loop.ll
@@ -1,4 +1,4 @@
; RUN: opt < %s -instrprof -S -o - -do-counter-promotion=1 | FileCheck %s
; RUN: opt < %s -passes=instrprof -S -do-counter-promotion=1 | FileCheck %s
; CHECK: store

@__profn_foo = private constant [3 x i8] c"foo"
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/Transforms/PGOProfile/not_promote_ret_exit.ll
@@ -1,5 +1,5 @@
; RUN: opt < %s -instrprof -S -o - -do-counter-promotion=1 -skip-ret-exit-block=1 | FileCheck %s --check-prefixes=CHECK,SKIP
; RUN: opt < %s -instrprof -S -o - -do-counter-promotion=1 -skip-ret-exit-block=0 | FileCheck %s --check-prefixes=CHECK,NOTSKIP
; RUN: opt < %s -passes=instrprof -S -do-counter-promotion=1 -skip-ret-exit-block=1 | FileCheck %s --check-prefixes=CHECK,SKIP
; RUN: opt < %s -passes=instrprof -S -do-counter-promotion=1 -skip-ret-exit-block=0 | FileCheck %s --check-prefixes=CHECK,NOTSKIP

$__llvm_profile_raw_version = comdat any

Expand Down

0 comments on commit 8658cf9

Please sign in to comment.