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

Unified Diff: src/compiler/common-operator-reducer.cc

Issue 1128133003: [turbofan] Make an OptionalOperator for MachineOperatorBuilder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: OPTIONAL macro Created 5 years, 6 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 | src/compiler/js-intrinsic-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator-reducer.cc
diff --git a/src/compiler/common-operator-reducer.cc b/src/compiler/common-operator-reducer.cc
index 4bab1204787d1414c518112afbdab0c0c13c1073..14bf812243ce20fbb212d75a8cfd75ce26dc1fcb 100644
--- a/src/compiler/common-operator-reducer.cc
+++ b/src/compiler/common-operator-reducer.cc
@@ -179,15 +179,15 @@ Reduction CommonOperatorReducer::ReducePhi(Node* node) {
}
}
if (mcond.left().Equals(vtrue) && mcond.right().Equals(vfalse) &&
- machine()->HasFloat32Min()) {
+ machine()->Float32Min().IsSupported()) {
// We might now be able to further reduce the {merge} node.
Revisit(merge);
- return Change(node, machine()->Float32Min(), vtrue, vfalse);
+ return Change(node, machine()->Float32Min().op(), vtrue, vfalse);
} else if (mcond.left().Equals(vfalse) && mcond.right().Equals(vtrue) &&
- machine()->HasFloat32Max()) {
+ machine()->Float32Max().IsSupported()) {
// We might now be able to further reduce the {merge} node.
Revisit(merge);
- return Change(node, machine()->Float32Max(), vtrue, vfalse);
+ return Change(node, machine()->Float32Max().op(), vtrue, vfalse);
}
} else if (cond->opcode() == IrOpcode::kFloat64LessThan) {
Float64BinopMatcher mcond(cond);
@@ -201,15 +201,15 @@ Reduction CommonOperatorReducer::ReducePhi(Node* node) {
}
}
if (mcond.left().Equals(vtrue) && mcond.right().Equals(vfalse) &&
- machine()->HasFloat64Min()) {
+ machine()->Float64Min().IsSupported()) {
// We might now be able to further reduce the {merge} node.
Revisit(merge);
- return Change(node, machine()->Float64Min(), vtrue, vfalse);
+ return Change(node, machine()->Float64Min().op(), vtrue, vfalse);
} else if (mcond.left().Equals(vfalse) && mcond.right().Equals(vtrue) &&
- machine()->HasFloat64Max()) {
+ machine()->Float64Max().IsSupported()) {
// We might now be able to further reduce the {merge} node.
Revisit(merge);
- return Change(node, machine()->Float64Max(), vtrue, vfalse);
+ return Change(node, machine()->Float64Max().op(), vtrue, vfalse);
}
}
}
@@ -256,11 +256,11 @@ Reduction CommonOperatorReducer::ReduceSelect(Node* node) {
}
}
if (mcond.left().Equals(vtrue) && mcond.right().Equals(vfalse) &&
- machine()->HasFloat32Min()) {
- return Change(node, machine()->Float32Min(), vtrue, vfalse);
+ machine()->Float32Min().IsSupported()) {
+ return Change(node, machine()->Float32Min().op(), vtrue, vfalse);
} else if (mcond.left().Equals(vfalse) && mcond.right().Equals(vtrue) &&
- machine()->HasFloat32Max()) {
- return Change(node, machine()->Float32Max(), vtrue, vfalse);
+ machine()->Float32Max().IsSupported()) {
+ return Change(node, machine()->Float32Max().op(), vtrue, vfalse);
}
break;
}
@@ -274,11 +274,11 @@ Reduction CommonOperatorReducer::ReduceSelect(Node* node) {
}
}
if (mcond.left().Equals(vtrue) && mcond.right().Equals(vfalse) &&
- machine()->HasFloat64Min()) {
- return Change(node, machine()->Float64Min(), vtrue, vfalse);
+ machine()->Float64Min().IsSupported()) {
+ return Change(node, machine()->Float64Min().op(), vtrue, vfalse);
} else if (mcond.left().Equals(vfalse) && mcond.right().Equals(vtrue) &&
- machine()->HasFloat64Max()) {
- return Change(node, machine()->Float64Max(), vtrue, vfalse);
+ machine()->Float64Max().IsSupported()) {
+ return Change(node, machine()->Float64Max().op(), vtrue, vfalse);
}
break;
}
« no previous file with comments | « no previous file | src/compiler/js-intrinsic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698