-
Notifications
You must be signed in to change notification settings - Fork 12k
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
MergeFunction can't merge functions because of jump tables #92201
Comments
This sounds reasonable to me. I think it is a lot more likely that MergeFuncs can benefit from ConstMerge than the other way around. |
@yamt do you have a small example of IR where there's missed merging? |
see: mergefunc can't merge functions because of tables: in the final output, functions are identical because of later constmerge: |
Constmerge can fold switch jump tables, possibly making functions identical again. It can help mergefunc. On the otherhand, the opposite seems unlikely. Fixes llvm#92201
Constmerge can fold switch jump tables, possibly making functions identical again. It can help mergefunc. On the otherhand, the opposite seems unlikely. Fixes llvm#92201
Constmerge can fold switch jump tables, possibly making functions identical again. It can help mergefunc. On the other hand, the opposite seems unlikely. Fixes llvm#92201.
i observed MergeFunc missing merging opportunities due to switch jump tables.
workarounds i can think of:
The text was updated successfully, but these errors were encountered: