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

Unified Diff: pkg/compiler/lib/src/cps_ir/redundant_refinement.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/cps_ir/redundant_phi.dart ('k') | pkg/compiler/lib/src/cps_ir/scalar_replacement.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/redundant_refinement.dart
diff --git a/pkg/compiler/lib/src/cps_ir/redundant_refinement.dart b/pkg/compiler/lib/src/cps_ir/redundant_refinement.dart
index cff47d64fa4b757bb1014327bec6827408541cc6..8cd13b3840ca2f4913e543d0c9d12f423b6ae8fe 100644
--- a/pkg/compiler/lib/src/cps_ir/redundant_refinement.dart
+++ b/pkg/compiler/lib/src/cps_ir/redundant_refinement.dart
@@ -28,7 +28,7 @@ import 'type_mask_system.dart';
/// Ideally, this pass should go away and GVN should handle refinements
/// directly.
class RedundantRefinementEliminator extends TrampolineRecursiveVisitor
- implements Pass {
+ implements Pass {
String get passName => 'Redundant refinement elimination';
TypeMaskSystem typeSystem;
@@ -45,7 +45,9 @@ class RedundantRefinementEliminator extends TrampolineRecursiveVisitor
Refinement refinement = node.primitive;
Primitive value = refinement.value.definition;
if (typeSystem.isMorePreciseOrEqual(value.type, refinement.refineType)) {
- refinement..replaceUsesWith(value)..destroy();
+ refinement
+ ..replaceUsesWith(value)
+ ..destroy();
node.remove();
return next;
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/redundant_phi.dart ('k') | pkg/compiler/lib/src/cps_ir/scalar_replacement.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698