mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
[JumpThreading] Make -print-lvi-after-jump-threading work with NPM
This commit is contained in:
parent
d59bc177d6
commit
7b22dbd090
@ -352,6 +352,11 @@ PreservedAnalyses JumpThreadingPass::run(Function &F,
|
|||||||
bool Changed = runImpl(F, &TLI, &LVI, &AA, &DTU, F.hasProfileData(),
|
bool Changed = runImpl(F, &TLI, &LVI, &AA, &DTU, F.hasProfileData(),
|
||||||
std::move(BFI), std::move(BPI));
|
std::move(BFI), std::move(BPI));
|
||||||
|
|
||||||
|
if (PrintLVIAfterJumpThreading) {
|
||||||
|
dbgs() << "LVI for function '" << F.getName() << "':\n";
|
||||||
|
LVI.printLVI(F, DTU.getDomTree(), dbgs());
|
||||||
|
}
|
||||||
|
|
||||||
if (!Changed)
|
if (!Changed)
|
||||||
return PreservedAnalyses::all();
|
return PreservedAnalyses::all();
|
||||||
PreservedAnalyses PA;
|
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 -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
|
; Testing LVI cache after jump-threading
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user