[llvm] 8658cf9 - [test] Migrate PGO related -instrprof tests to new PM
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 16 01:21:18 PDT 2022
Author: Fangrui Song
Date: 2022-07-16T01:21:12-07:00
New Revision: 8658cf999d61a2d93e62b4c75c5861eff1a6b15c
URL: https://github.com/llvm/llvm-project/commit/8658cf999d61a2d93e62b4c75c5861eff1a6b15c
DIFF: https://github.com/llvm/llvm-project/commit/8658cf999d61a2d93e62b4c75c5861eff1a6b15c.diff
LOG: [test] Migrate PGO related -instrprof tests to new PM
Added:
Modified:
llvm/test/DebugInfo/debugify-each.ll
llvm/test/Transforms/PGOProfile/counter_promo_exit_merge.ll
llvm/test/Transforms/PGOProfile/counter_promo_with_bias.ll
llvm/test/Transforms/PGOProfile/infinite_loop.ll
llvm/test/Transforms/PGOProfile/not_promote_ret_exit.ll
Removed:
################################################################################
diff --git a/llvm/test/DebugInfo/debugify-each.ll b/llvm/test/DebugInfo/debugify-each.ll
index 1020b81372684..0fff59c228cd3 100644
--- a/llvm/test/DebugInfo/debugify-each.ll
+++ b/llvm/test/DebugInfo/debugify-each.ll
@@ -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
diff --git a/llvm/test/Transforms/PGOProfile/counter_promo_exit_merge.ll b/llvm/test/Transforms/PGOProfile/counter_promo_exit_merge.ll
index 85ca1613c8ad3..e53efe8fa73d1 100644
--- a/llvm/test/Transforms/PGOProfile/counter_promo_exit_merge.ll
+++ b/llvm/test/Transforms/PGOProfile/counter_promo_exit_merge.ll
@@ -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
diff --git a/llvm/test/Transforms/PGOProfile/counter_promo_with_bias.ll b/llvm/test/Transforms/PGOProfile/counter_promo_with_bias.ll
index 050210f0be3a7..bcc4459e908c6 100644
--- a/llvm/test/Transforms/PGOProfile/counter_promo_with_bias.ll
+++ b/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"
diff --git a/llvm/test/Transforms/PGOProfile/infinite_loop.ll b/llvm/test/Transforms/PGOProfile/infinite_loop.ll
index 68e9873f092b4..09bfbdc11566e 100644
--- a/llvm/test/Transforms/PGOProfile/infinite_loop.ll
+++ b/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"
diff --git a/llvm/test/Transforms/PGOProfile/not_promote_ret_exit.ll b/llvm/test/Transforms/PGOProfile/not_promote_ret_exit.ll
index 25d9784e23b1f..8481f067e7a14 100644
--- a/llvm/test/Transforms/PGOProfile/not_promote_ret_exit.ll
+++ b/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
More information about the llvm-commits
mailing list