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

Unified Diff: pkg/compiler/lib/src/ssa/optimize.dart

Issue 2239193002: Rerun formatter (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/nodes.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/optimize.dart
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
index 80f5e169eb359b8e6dd7830d66c080224813a068..9dd26fffdaf39b5ffecb547579bc1b792e935062 100644
--- a/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/pkg/compiler/lib/src/ssa/optimize.dart
@@ -1223,6 +1223,7 @@ class SsaDeadCodeEliminator extends HGraphVisitor implements OptimizationPhase {
}
return false;
}
+
return instruction.isAllocation &&
instruction.isPure() &&
trivialDeadStoreReceivers.putIfAbsent(
@@ -1275,7 +1276,8 @@ class SsaDeadCodeEliminator extends HGraphVisitor implements OptimizationPhase {
}
void cleanPhis(HGraph graph) {
- L: for (HBasicBlock block in graph.blocks) {
+ L:
+ for (HBasicBlock block in graph.blocks) {
List<HBasicBlock> predecessors = block.predecessors;
// Zap all inputs to phis that correspond to dead blocks.
block.forEachPhi((HPhi phi) {
@@ -1569,6 +1571,7 @@ class SsaGlobalValueNumberer implements OptimizationPhase {
assert(instruction is HGoto || instruction is HLoopBranch);
return instruction is HGoto || instruction.inputs[0].isConstantTrue();
}
+
bool firstInstructionInLoop = block == loopHeader
// Compensate for lack of code motion.
||
« no previous file with comments | « pkg/compiler/lib/src/ssa/nodes.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698