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

Unified Diff: src/IceCfgNode.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/IceCfg.cpp ('k') | src/IceDefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfgNode.cpp
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp
index eff4e973288c6a04b98356a5cb5639584f50b697..4efec9304adbc773d17ef86f0f517caf87186667 100644
--- a/src/IceCfgNode.cpp
+++ b/src/IceCfgNode.cpp
@@ -200,13 +200,6 @@ void CfgNode::placePhiStores() {
Variable *Dest = (*I2)->getDest();
assert(Dest);
InstAssign *NewInst = InstAssign::create(Func, Dest, Operand);
- // If Src is a variable, set the Src and Dest variables to
- // prefer each other for register allocation.
- if (Variable *Src = llvm::dyn_cast<Variable>(Operand)) {
- bool AllowOverlap = false;
- Dest->setPreferredRegister(Src, AllowOverlap);
- Src->setPreferredRegister(Dest, AllowOverlap);
- }
if (CmpInstDest == Operand)
Insts.insert(SafeInsertionPoint, NewInst);
else
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceDefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698