Skip to content

[CodeGen] Don't check attrs for stack realign #92564

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

Merged
merged 1 commit into from
May 29, 2024

Conversation

aengelke
Copy link
Contributor

@aengelke aengelke commented May 17, 2024

shouldRealignStack/canRealignStack are repeatedly called in PEI (through hasStackRealignment). Checking function attributes is expensive, so cache this data in the MachineFrameInfo, which had most data already.

This slightly changes the semantics of MachineFrameInfo::ForcedRealign to be also true when the stackrealign attribute is set. I hope this doesn't break anything.

shouldRealignStack/canRealignStack are repeatedly called in PEI (through
hasStackRealignment). Checking function attributes is expensive, so
cache this data in the MachineFrameInfo, which had most data already.
@aengelke aengelke requested review from jayfoad, MaskRay and topperc May 18, 2024 07:35
@aengelke aengelke marked this pull request as ready for review May 18, 2024 07:36
@aengelke aengelke merged commit 9fe7aef into llvm:main May 29, 2024
8 checks passed
@aengelke aengelke deleted the perf/tri-noattr branch May 29, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants