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

Unified Diff: src/hydrogen-instructions.h

Issue 23156006: [v8-dev] ARM: Improve Lithium register constraints. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« src/globals.h ('K') | « src/globals.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index 887168cc755d6779be50924c417fb3c79d9b776f..d923aa2846c65051d4ec4c9f02f5531d78d8fbff 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -3478,10 +3478,16 @@ class HBinaryOperation: public HTemplateInstruction<3> {
if (left()->IsConstant()) return true;
if (right()->IsConstant()) return false;
+#ifdef V8_BETTER_OPERAND_ON_RIGHT
+ // Otherwise, if there is only one use of the left operand, the define
+ // says it would be better off on the right.
+ return (left()->UseCount() == 1);
+#else
// Otherwise, if there is only one use of the right operand, it would be
// better off on the left for platforms that only have 2-arg arithmetic
// ops (e.g ia32, x64) that clobber the left operand.
return right()->UseCount() == 1;
+#endif
}
HValue* BetterLeftOperand() {
« src/globals.h ('K') | « src/globals.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698