Skip to content

Commit 5eb85c0

Browse files
[JumpThreading] Remove LVI printer flag (#73426)
This patch removes the -print-lvi-after-jump-threading flag now that we can print everything in the LVI cache using the print<lazy-value-info> pass.
1 parent 2b646b5 commit 5eb85c0

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

llvm/lib/Transforms/Scalar/JumpThreading.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ static cl::opt<unsigned> PhiDuplicateThreshold(
102102
cl::desc("Max PHIs in BB to duplicate for jump threading"), cl::init(76),
103103
cl::Hidden);
104104

105-
static cl::opt<bool> PrintLVIAfterJumpThreading(
106-
"print-lvi-after-jump-threading",
107-
cl::desc("Print the LazyValueInfo cache after JumpThreading"), cl::init(false),
108-
cl::Hidden);
109-
110105
static cl::opt<bool> ThreadAcrossLoopHeaders(
111106
"jump-threading-across-loop-headers",
112107
cl::desc("Allow JumpThreading to thread across loop headers, for testing"),
@@ -257,11 +252,6 @@ PreservedAnalyses JumpThreadingPass::run(Function &F,
257252
&DT, nullptr, DomTreeUpdater::UpdateStrategy::Lazy),
258253
std::nullopt, std::nullopt);
259254

260-
if (PrintLVIAfterJumpThreading) {
261-
dbgs() << "LVI for function '" << F.getName() << "':\n";
262-
LVI.printLVI(F, getDomTreeUpdater()->getDomTree(), dbgs());
263-
}
264-
265255
if (!Changed)
266256
return PreservedAnalyses::all();
267257

llvm/test/Analysis/LazyValueAnalysis/lvi-after-jumpthreading.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
; RUN: opt < %s -passes=jump-threading -print-lvi-after-jump-threading -disable-output 2>&1 | FileCheck %s
2-
; RUN: opt < %s -passes=jump-threading -print-lvi-after-jump-threading -disable-output 2>&1 | FileCheck %s
1+
; RUN: opt < %s -passes="jump-threading,print<lazy-value-info>" -disable-output 2>&1 | FileCheck %s
32

43
; Testing LVI cache after jump-threading
54

0 commit comments

Comments
 (0)