Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: src/IceCfg.cpp

Issue 1357733004: Subzero: Fix -enable-block-profile. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index 330f6382e6bdbaf998fc72ec46dc5f33e7daaaa9..4259b27bcb9f7c8730cd9a3517eab1a27b58c9e1 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -184,11 +184,6 @@ void Cfg::translate() {
}
TimerMarker T(TimerStack::TT_translate, this);
- // Create the Hi and Lo variables where a split was needed
- for (Variable *Var : Variables)
- if (auto Var64On32 = llvm::dyn_cast<Variable64On32>(Var))
- Var64On32->initHiLo(this);
-
dump("Initial CFG");
if (getContext()->getFlags().getEnableBlockProfile()) {
@@ -201,6 +196,11 @@ void Cfg::translate() {
dump("Profiled CFG");
}
+ // Create the Hi and Lo variables where a split was needed
+ for (Variable *Var : Variables)
+ if (auto Var64On32 = llvm::dyn_cast<Variable64On32>(Var))
+ Var64On32->initHiLo(this);
+
// The set of translation passes and their order are determined by the
// target.
getTarget()->translate();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698