Skip to content

Commit cbf806a

Browse files
committed
Disable optimization
The inline labels optimization is no longer needed. It was also incorrect. To verify: Compile classpath/AggregateClassPath with optimization to witness a crash in the backend: Key not found: case3 The optimization incorrectly eliminates the label even though it is called twice by the generated code. maybe it does not detect case labels called with parameters?
1 parent f1a669b commit cbf806a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/localopt/Simplify.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Simplify extends MiniPhaseTransform with IdentityDenotTransformer {
4141
new InlineCaseIntrinsics(this) ::
4242
new RemoveUnnecessaryNullChecks ::
4343
new InlineOptions ::
44-
new InlineLabelsCalledOnce ::
44+
//new InlineLabelsCalledOnce :: // not needed: new pattern matcher does this already
4545
new Valify(this) ::
4646
new Devalify ::
4747
new Jumpjump ::

0 commit comments

Comments
 (0)