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

Unified Diff: src/IceOperand.cpp

Issue 490333003: Subzero: Fix address mode optimization involving phi temporaries. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Clean up and better document the test Created 6 years, 4 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/IceOperand.cpp
diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp
index d8a754b9e1c7ea2e441979d0aaa7987ca7be8572..459410a5349dacd677e353a96f1f3d03334d15fb 100644
--- a/src/IceOperand.cpp
+++ b/src/IceOperand.cpp
@@ -154,6 +154,11 @@ void Variable::setDefinition(Inst *Inst, const CfgNode *Node) {
DefNode = NULL;
}
+void Variable::resetDefinition() {
+ DefNode = NULL;
+ DefInst = NULL;
+}
+
void Variable::replaceDefinition(Inst *Inst, const CfgNode *Node) {
DefInst = NULL;
setDefinition(Inst, Node);

Powered by Google App Engine
This is Rietveld 408576698