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

Unified Diff: src/IceTargetLowering.h

Issue 1368993004: Subzero: Improve usability of liveness-related tools. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix comments 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
Index: src/IceTargetLowering.h
diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
index 7f3eaa7b66d73905559f97f22b426367908009eb..61bb996a547dc4be96b69b31b27a57be22593ce0 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -287,9 +287,10 @@ protected:
/// before returning.
virtual void postLower() {}
- /// Find two-address non-SSA instructions and set the DestNonKillable flag to
- /// keep liveness analysis consistent.
- void inferTwoAddress();
+ /// Find (non-SSA) instructions where the Dest variable appears in some source
+ /// operand, and set the IsDestRedefined flag. This keeps liveness analysis
+ /// consistent.
+ void inferRedefinition();
John 2015/09/25 23:02:16 this does not infer, it finds. maybe rename it fin
Jim Stichnoth 2015/09/25 23:56:01 Done.
/// Make a pass over the Cfg to determine which variables need stack slots and
/// place them in a sorted list (SortedSpilledVariables). Among those, vars,
@@ -348,9 +349,7 @@ protected:
Context.insert(InstBundleLock::create(Func, BundleOption));
}
void _bundle_unlock() { Context.insert(InstBundleUnlock::create(Func)); }
- void _set_dest_nonkillable() {
- Context.getLastInserted()->setDestNonKillable();
- }
+ void _set_dest_redefined() { Context.getLastInserted()->setDestRedefined(); }
bool shouldOptimizeMemIntrins();
« src/IceRegAlloc.cpp ('K') | « src/IceRegAlloc.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698