forked from OSchip/llvm-project
[JumpThreading] Make -print-lvi-after-jump-threading work with NPM
This commit is contained in:
parent
94e4ec6499
commit
9e3b4f4941
|
@ -352,6 +352,11 @@ PreservedAnalyses JumpThreadingPass::run(Function &F,
|
|||
bool Changed = runImpl(F, &TLI, &LVI, &AA, &DTU, F.hasProfileData(),
|
||||
std::move(BFI), std::move(BPI));
|
||||
|
||||
if (PrintLVIAfterJumpThreading) {
|
||||
dbgs() << "LVI for function '" << F.getName() << "':\n";
|
||||
LVI.printLVI(F, DTU.getDomTree(), dbgs());
|
||||
}
|
||||
|
||||
if (!Changed)
|
||||
return PreservedAnalyses::all();
|
||||
PreservedAnalyses PA;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
; RUN: opt < %s -jump-threading -print-lvi-after-jump-threading -disable-output 2>&1 | FileCheck %s
|
||||
; RUN: opt < %s -passes=jump-threading -print-lvi-after-jump-threading -disable-output 2>&1 | FileCheck %s
|
||||
|
||||
; Testing LVI cache after jump-threading
|
||||
|
||||
|
|
Loading…
Reference in New Issue