This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Don't zero callee-save registers with zero-call-used-regs (PR57692)
ClosedPublic

Authored by nikic on Sep 15 2022, 8:07 AM.

Details

Summary

Callee save registers must be preserved, so -fzero-call-used-regs should not be zeroing them. The previous implementation only did not zero callee save registers that were saved&restored inside the function, but we need preserve all of them

Fixes https://github.com/llvm/llvm-project/issues/57692.

Diff Detail

Event Timeline

nikic created this revision.Sep 15 2022, 8:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 8:07 AM
nikic requested review of this revision.Sep 15 2022, 8:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 8:07 AM
MaskRay accepted this revision.Sep 15 2022, 10:02 AM
This revision is now accepted and ready to land.Sep 15 2022, 10:02 AM
This revision was landed with ongoing or failed builds.Sep 16 2022, 2:52 AM
This revision was automatically updated to reflect the committed changes.