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

Unified Diff: src/IceInst.h

Issue 1392383003: Subzero: Consider all instruction variables for register preference. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 2 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 | src/IceInst.cpp » ('j') | src/IceInstARM32.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInst.h
diff --git a/src/IceInst.h b/src/IceInst.h
index a1e51617a360c526e6c27e09ae00ae787de4ca44..abd814468db779a16c4ed48779faef45cb804d83 100644
--- a/src/IceInst.h
+++ b/src/IceInst.h
@@ -127,7 +127,9 @@ public:
return false;
}
- virtual bool isSimpleAssign() const { return false; }
+ /// Returns true if the instruction is equivalent to a simple
+ /// "var_dest=var_src" assignment where the dest and src are both variables.
+ virtual bool isVarAssign() const { return false; }
void livenessLightweight(Cfg *Func, LivenessBV &Live);
/// Calculates liveness for this instruction. Returns true if this instruction
@@ -313,7 +315,7 @@ public:
static InstAssign *create(Cfg *Func, Variable *Dest, Operand *Source) {
return new (Func->allocate<InstAssign>()) InstAssign(Func, Dest, Source);
}
- bool isSimpleAssign() const override { return true; }
+ bool isVarAssign() const override;
void dump(const Cfg *Func) const override;
static bool classof(const Inst *Inst) { return Inst->getKind() == Assign; }
« no previous file with comments | « no previous file | src/IceInst.cpp » ('j') | src/IceInstARM32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698