Chromium Code Reviews| Index: src/hydrogen-instructions.cc |
| =================================================================== |
| --- src/hydrogen-instructions.cc (revision 7081) |
| +++ src/hydrogen-instructions.cc (working copy) |
| @@ -933,6 +933,18 @@ |
| } |
| +bool HPhi::HasRealUses() { |
|
Kevin Millikin (Chromium)
2011/03/08 08:51:03
The boolean variable seems too much:
for (...) {
fschneider
2011/03/08 10:03:39
Done.
|
| + bool result = false; |
| + for (int i = 0; i < uses()->length(); i++) { |
| + if (!uses()->at(i)->IsPhi()) { |
| + result = true; |
| + break; |
| + } |
| + } |
| + return result; |
| +} |
| + |
| + |
| HValue* HPhi::GetRedundantReplacement() { |
| HValue* candidate = NULL; |
| int count = OperandCount(); |