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

Unified Diff: src/IceInst.cpp

Issue 597003004: Subzero: Automatically infer regalloc preferences and overlap. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 6 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 | « src/IceInst.h ('k') | src/IceInstX8632.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInst.cpp
diff --git a/src/IceInst.cpp b/src/IceInst.cpp
index a88194e2acf7e092137c6e1111fab281cacb21d9..9706ce962534867837abc5152f056f9284cef875 100644
--- a/src/IceInst.cpp
+++ b/src/IceInst.cpp
@@ -346,12 +346,7 @@ Inst *InstPhi::lower(Cfg *Func) {
IceString PhiName = Dest->getName() + "_phi";
Variable *NewSrc = Func->makeVariable(Dest->getType(), PhiName);
this->Dest = NewSrc;
- InstAssign *NewInst = InstAssign::create(Func, Dest, NewSrc);
- // Set Dest and NewSrc to have affinity with each other, as a hint
- // for register allocation.
- Dest->setPreferredRegister(NewSrc, false);
- NewSrc->setPreferredRegister(Dest, false);
- return NewInst;
+ return InstAssign::create(Func, Dest, NewSrc);
}
InstRet::InstRet(Cfg *Func, Operand *RetValue)
« no previous file with comments | « src/IceInst.h ('k') | src/IceInstX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698