This is an archive of the discontinued LLVM Phabricator instance.

[X86] Emit .cfi_restore after popping callee-saved-registers if no red zone
Needs ReviewPublic

Authored by silee on Jun 12 2022, 2:47 AM.

Details

Summary

We discovered the bug
If the function has no red zone, cfi of the popped callee-saved-registers should be invalidated with .cfi_restore instruction.
This commit will emit .cfi_restore instruction after popping callee-saved-registers if no red zone.

Diff Detail

Event Timeline

silee created this revision.Jun 12 2022, 2:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2022, 2:47 AM
silee requested review of this revision.Jun 12 2022, 2:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2022, 2:47 AM

Can you please add a test?

I am going to add test.
This bug should be fixed?
If so, I will do that.
And, it would be okay if I add a simple test?