[PATCH] D70509: [JumpThreading] Use profile data even with the new pass manager
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 08:23:42 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1a58be2ac58c: [JumpThreading] Use profile data even with the new pass manager (authored by kazu).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70509/new/
https://reviews.llvm.org/D70509
Files:
llvm/lib/Transforms/Scalar/JumpThreading.cpp
llvm/test/Transforms/JumpThreading/update-edge-weight.ll
Index: llvm/test/Transforms/JumpThreading/update-edge-weight.ll
===================================================================
--- llvm/test/Transforms/JumpThreading/update-edge-weight.ll
+++ llvm/test/Transforms/JumpThreading/update-edge-weight.ll
@@ -1,4 +1,5 @@
; RUN: opt -S -jump-threading %s | FileCheck %s
+; RUN: opt -S -passes=jump-threading %s | FileCheck %s
; Test if edge weights are properly updated after jump threading.
Index: llvm/lib/Transforms/Scalar/JumpThreading.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ llvm/lib/Transforms/Scalar/JumpThreading.cpp
@@ -340,7 +340,7 @@
BFI.reset(new BlockFrequencyInfo(F, *BPI, LI));
}
- bool Changed = runImpl(F, &TLI, &LVI, &AA, &DTU, HasProfileData,
+ bool Changed = runImpl(F, &TLI, &LVI, &AA, &DTU, F.hasProfileData(),
std::move(BFI), std::move(BPI));
if (!Changed)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70509.230657.patch
Type: text/x-patch
Size: 962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191122/0bd266c4/attachment.bin>
More information about the llvm-commits
mailing list