-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[AArch64] Enable "sink-and-fold" in MachineSink by default #67432
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
Conversation
You could remove the option from some of the tests now that it's on by default? Maybe not all of them, but it would be good if one of them tested the default. |
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.
Thanks. LGTM
@momchil-velikov - I cannot find the comment I have attached to one of the commits in this PR. Just to make sure the information is not lost, I am letting you know that this PR seems to be breaking one of the public bots https://green.lab.llvm.org/green/job/clang-stage1-RA/35786/ |
…67432)" This reverts commit ace20e2. This might be causing a buildbot failure at https://green.lab.llvm.org/green/job/clang-stage1-RA/35786/
…lvm#67432)" This reverts commit ace20e2. This might be causing a buildbot failure at https://green.lab.llvm.org/green/job/clang-stage1-RA/35786/
We're seeing some nice size wins in Meta's Android apps from this change (0.3% reduction in overall native library size). Looking forward to the reland :) |
@momchil-velikov this is causing a substantial compilation time regression when generating dwarf output. A V8 c++ file which compiles in less than 10s before this revision, compiles in 10 minutes at this revision. The compilation command is something like:
I started a reduction but it might take considerable time as we deal with such a high compilation time regression. A revert will be welcome to unblock us before we come up with the reduced test case. |
@momchil-velikov as I reduce the file even further I get to less and less of a visible slow-down between this and previous compiler, so I had to stop the process as it was taking a lot of time. With the attached reduced repro the slowdown is now 5x. I hope you find the issue. Please let me know if you need more info. |
@bgra8 Thanks, I was able to observe 10x difference between |
Small reproducer here:
With these commands
it's quite evident how sink-and-fold causes quadratic explosion in the number the DBG_VALUE instructions. |
Easier to see here: https://gcc.godbolt.org/z/Tv878a39T |
No description provided.