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

Make sure global constants are recognized as such in our own pass #36970

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

yuyichao
Copy link
Contributor

@yuyichao yuyichao commented Aug 8, 2020

The metadata on the load may be striped by LLVM when moving code around.

Example of passes that does this is LICM, which is actually already doing a better job then some of the other places.

This is a bit of a hack, but AFAICT, it is NOT an LLVM bug to remove tbaa and other metadata here, since in general, these metadata might be guarded by some other checks. (Maybe there could be an exception made for constant tbaa metadata here though). Almost all of our metadata are based on static type info and is legal to keep when moving code around but I don't see a way to convince LLVM about it. If there is a way that'll be a better fix though the current one should be pretty cheap.

Reduce .text in the sysimg by ~2%, which sounds like quite a few gc frame stores and write barriers....

@yuyichao yuyichao requested review from vtjnash and Keno August 8, 2020 03:45
The metadata on the load may be striped by LLVM when moving code around
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

Successfully merging this pull request may close these issues.

1 participant