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

Unified Diff: src/IceInstARM32.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 | « src/IceInst.cpp ('k') | src/IceInstX86Base.h » ('j') | src/IceInstX86Base.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstARM32.h
diff --git a/src/IceInstARM32.h b/src/IceInstARM32.h
index ffc3be878426281ed0ba29daa782925e8c6e67fa..60b24844a68ec113f1f809375482a5cc424e6158 100644
--- a/src/IceInstARM32.h
+++ b/src/IceInstARM32.h
@@ -1152,7 +1152,7 @@ public:
return !isMultiDest() && !isMultiSource() &&
checkForRedundantAssign(getDest(), getSrc(0));
}
- bool isSimpleAssign() const override { return true; }
+ bool isVarAssign() const override { return llvm::isa<Variable>(getSrc(0)); }
John 2015/10/12 15:35:16 this method is inline, but the other is not. does
Jim Stichnoth 2015/10/12 17:27:31 The implementation of InstAssign::isVarAssign() ha
void emit(const Cfg *Func) const override;
void emitIAS(const Cfg *Func) const override;
void dump(const Cfg *Func) const override;
« no previous file with comments | « src/IceInst.cpp ('k') | src/IceInstX86Base.h » ('j') | src/IceInstX86Base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698