-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Optimizer tests (disabled for now) #24948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| @@ -1,17 +1,15 @@ | |||
| package dotty.tools.backend.jvm | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re: the icon.png deletion above, every time I open the project IntelliJ wants to do this, so...
|
|
||
| val fun = getMethod(clsNode, "test") | ||
| val instructions = instructionsFromMethod(fun) | ||
| val expected = // TODO room for constant folding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked, this TODO was done (the code below was modified but this todo was kept)
compiler/test/dotty/tools/backend/jvm/OptimizationBytecodeTests.scala
Outdated
Show resolved
Hide resolved
|
|
||
| object Warmup { | ||
| def filter[A](p: Any => Boolean): Any = filter[Any](p) | ||
| def filter[A](p: Any => Boolean): Int = 1 + filter[Any](p) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one was modified in the scala2 repo at some point
Tried porting the interesting stuff from scala2 as end-to-end tests that assert equivalence or high-level properties, rather than depending on specific bytecode shapes.
Part of #22667
Contributes to #3126