From f72b76cde5a36bcf1bd8a9f5ffa69e4c9d9f318d Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Wed, 9 Feb 2022 15:49:53 -0800 Subject: [PATCH] [test] Replace/remove some 'opt -analyze' RUN lines --- llvm/test/Analysis/CycleInfo/basic.ll | 1 - llvm/test/Analysis/LoopAccessAnalysis/forked-pointers.ll | 1 - .../max-backedge-taken-count-guard-info-rewrite-expressions.ll | 1 - llvm/test/Transforms/SampleProfile/profile-inference-islands.ll | 2 +- llvm/test/Transforms/SampleProfile/profile-inference-noprobes.ll | 2 +- .../Transforms/SampleProfile/profile-inference-rebalance-large.ll | 4 ++-- llvm/test/Transforms/SampleProfile/profile-inference-rebalance.ll | 4 ++-- llvm/test/Transforms/SampleProfile/profile-inference.ll | 4 ++-- 8 files changed, 8 insertions(+), 11 deletions(-) diff --git a/llvm/test/Analysis/CycleInfo/basic.ll b/llvm/test/Analysis/CycleInfo/basic.ll index dd6b4fa..f8326f1 100644 --- a/llvm/test/Analysis/CycleInfo/basic.ll +++ b/llvm/test/Analysis/CycleInfo/basic.ll @@ -1,4 +1,3 @@ -; RUN: opt < %s -cycles -analyze -enable-new-pm=0 | FileCheck %s -check-prefix=CHECK ; RUN: opt < %s -disable-output -passes='print' 2>&1 | FileCheck %s -check-prefix=CHECK define void @empty() { diff --git a/llvm/test/Analysis/LoopAccessAnalysis/forked-pointers.ll b/llvm/test/Analysis/LoopAccessAnalysis/forked-pointers.ll index 19d96ca..31d65bd 100644 --- a/llvm/test/Analysis/LoopAccessAnalysis/forked-pointers.ll +++ b/llvm/test/Analysis/LoopAccessAnalysis/forked-pointers.ll @@ -1,4 +1,3 @@ -; RUN: opt -loop-accesses -analyze -enable-new-pm=0 %s 2>&1 | FileCheck %s ; RUN: opt -disable-output -passes='print-access-info' %s 2>&1 | FileCheck %s target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" diff --git a/llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info-rewrite-expressions.ll b/llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info-rewrite-expressions.ll index 39af887..34e2a71 100644 --- a/llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info-rewrite-expressions.ll +++ b/llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info-rewrite-expressions.ll @@ -1,4 +1,3 @@ -; RUN: opt -analyze -scalar-evolution %s -enable-new-pm=0 | FileCheck %s ; RUN: opt -passes='print' -disable-output %s 2>&1 | FileCheck %s ; Test cases that require rewriting zext SCEV expression with infomration from diff --git a/llvm/test/Transforms/SampleProfile/profile-inference-islands.ll b/llvm/test/Transforms/SampleProfile/profile-inference-islands.ll index a6145c5..a1858b5 100644 --- a/llvm/test/Transforms/SampleProfile/profile-inference-islands.ll +++ b/llvm/test/Transforms/SampleProfile/profile-inference-islands.ll @@ -1,6 +1,6 @@ ; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-islands.prof -S -o %t ; RUN: FileCheck %s < %t -check-prefix=CHECK-ENTRY-COUNT -; RUN: opt < %t -analyze -block-freq -enable-new-pm=0 | FileCheck %s +; RUN: opt < %t -passes='print' -disable-output 2>&1 | FileCheck %s ; The test contains an isolated flow component ("island") that needs to be diff --git a/llvm/test/Transforms/SampleProfile/profile-inference-noprobes.ll b/llvm/test/Transforms/SampleProfile/profile-inference-noprobes.ll index c270644..d1e62f4 100644 --- a/llvm/test/Transforms/SampleProfile/profile-inference-noprobes.ll +++ b/llvm/test/Transforms/SampleProfile/profile-inference-noprobes.ll @@ -1,5 +1,5 @@ ; RUN: opt < %s -passes=sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-noprobes.prof -S | FileCheck %s -; RUN: opt < %s -passes=sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-noprobes.prof | opt -analyze -block-freq -enable-new-pm=0 | FileCheck %s --check-prefix=CHECK2 +; RUN: opt < %s -passes=sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-noprobes.prof | opt -passes='print' -disable-output 2>&1 | FileCheck %s --check-prefix=CHECK2 ; The test verifies that profile inference can be applied for non-probe-based diff --git a/llvm/test/Transforms/SampleProfile/profile-inference-rebalance-large.ll b/llvm/test/Transforms/SampleProfile/profile-inference-rebalance-large.ll index cf633ab..fb5b509 100644 --- a/llvm/test/Transforms/SampleProfile/profile-inference-rebalance-large.ll +++ b/llvm/test/Transforms/SampleProfile/profile-inference-rebalance-large.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-rebalance-large.prof | opt -analyze -branch-prob -enable-new-pm=0 | FileCheck %s -; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-rebalance-large.prof | opt -analyze -block-freq -enable-new-pm=0 | FileCheck %s --check-prefix=CHECK2 +; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-rebalance-large.prof | opt -passes='print' -disable-output 2>&1 | FileCheck %s +; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-rebalance-large.prof | opt -passes='print' -disable-output 2>&1 | FileCheck %s --check-prefix=CHECK2 ; The test verifies that counts can rebalanced in switch statements that contain ; both 'known' and 'unknown' basic blocks. diff --git a/llvm/test/Transforms/SampleProfile/profile-inference-rebalance.ll b/llvm/test/Transforms/SampleProfile/profile-inference-rebalance.ll index 9290e17..36772ed 100644 --- a/llvm/test/Transforms/SampleProfile/profile-inference-rebalance.ll +++ b/llvm/test/Transforms/SampleProfile/profile-inference-rebalance.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-rebalance.prof | opt -analyze -branch-prob -enable-new-pm=0 | FileCheck %s -; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-rebalance.prof | opt -analyze -block-freq -enable-new-pm=0 | FileCheck %s --check-prefix=CHECK2 +; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-rebalance.prof | opt -passes='print' -disable-output 2>&1 | FileCheck %s +; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference-rebalance.prof | opt -passes='print' -disable-output 2>&1 | FileCheck %s --check-prefix=CHECK2 ; The test contains a "diamond" and a "triangle" that needs to be rebalanced ; after basic profile inference. diff --git a/llvm/test/Transforms/SampleProfile/profile-inference.ll b/llvm/test/Transforms/SampleProfile/profile-inference.ll index 7424a74..41af84a 100644 --- a/llvm/test/Transforms/SampleProfile/profile-inference.ll +++ b/llvm/test/Transforms/SampleProfile/profile-inference.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference.prof | opt -analyze -branch-prob -enable-new-pm=0 | FileCheck %s -; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference.prof | opt -analyze -block-freq -enable-new-pm=0 | FileCheck %s --check-prefix=CHECK2 +; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference.prof | opt -passes='print' -disable-output 2>&1 | FileCheck %s +; RUN: opt < %s -passes=pseudo-probe,sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/profile-inference.prof | opt -passes='print' -disable-output 2>&1 | FileCheck %s --check-prefix=CHECK2 ; The test verifies that profile inference correctly builds branch probabilities ; from sampling-based block counts. -- 2.7.4