Skip to content

Commit 4f39455

Browse files
One last issue with these tpd changes...
This test: sbt "run -optimise -Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef,simplify tests/pos/t7126.scala" Breaks with the tpd changes alone. By that I mean even when disabling all optimisation (this commit), t7126 still fails.
1 parent 68df7c4 commit 4f39455

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -133,30 +133,30 @@ class Simplify extends MiniPhaseTransform with IdentityDenotTransformer {
133133
type Optimization = (Context) => (String, ErasureCompatibility, Visitor, Transformer)
134134

135135
private lazy val _optimizations: Seq[Optimization] =
136-
inlineCaseIntrinsics ::
137-
removeUnnecessaryNullChecks :: // Doesn't seams to work AfterErasure
138-
inlineOptions ::
136+
// inlineCaseIntrinsics ::
137+
// removeUnnecessaryNullChecks :: // Doesn't seams to work AfterErasure
138+
// inlineOptions ::
139139
// Tests that fail when enabled AfterErasure, to be investigated?
140140
// ../tests/run/Course-2002-04.scala failed
141141
// ../tests/run/t2005.scala failed
142142
// ../tests/run/optimizer-array-load.scala failed
143143
// ../tests/pos/virtpatmat_exist1.scala failed
144144
// ../tests/pos/t1133.scala failed
145-
inlineLabelsCalledOnce ::
146-
valify ::
147-
devalify ::
148-
jumpjump ::
149-
dropGoodCasts ::
150-
dropNoEffects ::
151-
// inlineLocalObjects :: // followCases needs to be fixed, see ./tests/pos/rbtree.scala
152-
// varify :: // varify could stop other transformations from being applied. postponed.
153-
// bubbleUpNothing ::
154-
// Still need to import the tailRec thing
155-
// t2429.scala
156-
// constraining-lub.scala
157-
// t8933c.scala
158-
// t348plus.scala
159-
constantFold ::
145+
// inlineLabelsCalledOnce ::
146+
// valify ::
147+
// devalify ::
148+
// jumpjump ::
149+
// dropGoodCasts ::
150+
// dropNoEffects ::
151+
// // inlineLocalObjects :: // followCases needs to be fixed, see ./tests/pos/rbtree.scala
152+
// // varify :: // varify could stop other transformations from being applied. postponed.
153+
// // bubbleUpNothing ::
154+
// // Still need to import the tailRec thing
155+
// // t2429.scala
156+
// // constraining-lub.scala
157+
// // t8933c.scala
158+
// // t348plus.scala
159+
// constantFold ::
160160
Nil
161161

162162
override def transformDefDef(tree: DefDef)(implicit ctx: Context, info: TransformerInfo): Tree = {

0 commit comments

Comments
 (0)