Skip to content
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

unsolved compiler performance problem: Const-propagation + branch-unrolling #31419

Open
ghost opened this issue Mar 21, 2019 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Mar 21, 2019

I'm not sure how to title this issue, but i just wanted to open an issue to track the unresolved problem we discovered today, @JeffBezanson and @vtjnash.

Namely, when a large (100 fields?) struct is const-propagated, and also involved in a branch, the LLVM IR seems to explode with lots and lots of phi nodes. (We saw like 10,000 in our function.)

In our case, the struct Const was only present because of issue #31418. However, it is valid to have such a large Const struct, and that might trigger this case in the future.

I'm opening this issue to track the problem so that we don't lose context on it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant