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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 11929021: Optimize double.floor and double.ceil down to roundsd when SSE4.1 is available. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc
index 5999f513c70d440e193f880a01e9aeb37f5388a1..d18b2a1f236b825d85ee0619dd365388ca6baf55 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -1339,7 +1339,9 @@ bool FlowGraphOptimizer::TryInlineInstanceMethod(InstanceCallInstr* call) {
return true;
}
if ((recognized_kind == MethodRecognizer::kDoubleTruncate) ||
- (recognized_kind == MethodRecognizer::kDoubleRound)) {
+ (recognized_kind == MethodRecognizer::kDoubleRound) ||
+ (recognized_kind == MethodRecognizer::kDoubleFloor) ||
+ (recognized_kind == MethodRecognizer::kDoubleCeil)) {
if (!CPUFeatures::double_truncate_round_supported()) {
return false;
}
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698