Chromium Code Reviews| 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 cb0318362417e0d38d9acea196e443eadf794362..25796f6a2c20da236f0455d97918a91d38e15cbc 100644 |
| --- a/pkg/compiler/lib/src/ssa/optimize.dart |
| +++ b/pkg/compiler/lib/src/ssa/optimize.dart |
| @@ -1306,6 +1306,13 @@ class SsaLiveBlockAnalyzer extends HBaseVisitor { |
| } else { |
| markBlockLive(instruction.elseBlock); |
| } |
| + } else if (condition.isValue()) { |
| + ValueTypeMask valueType = condition.instructionType; |
|
sra1
2015/09/29 01:02:05
I don't think we should it like this.
We should r
Harry Terkelsen
2015/09/29 01:09:53
I wanted to do this but I didn't know how to conve
Harry Terkelsen
2015/09/29 01:16:34
Oops, replied before fully reading your comment. I
|
| + if (valueType.value == true) { |
| + markBlockLive(instruction.thenBlock); |
| + } else { |
| + markBlockLive(instruction.elseBlock); |
| + } |
| } else { |
| visitControlFlow(instruction); |
| } |