This is an archive of the discontinued LLVM Phabricator instance.

Factor out redzone ABI checks [NFCI]
ClosedPublic

Authored by reames on May 10 2019, 12:41 PM.

Details

Summary

As requested in D58632, cleanup our red zone detection logic in the X86 backend. The existing X86MachineFunctionInfo flag is used to track whether we *use* the redzone (via a particularly optimization?), but there's no common way to check whether the function *has* a red zone.

I'd appreciate careful review of the uses being updated. I think they are NFC, but a careful eye from someone else would be appreciated.

Diff Detail

Repository
rL LLVM

Event Timeline

reames created this revision.May 10 2019, 12:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2019, 12:41 PM
chandlerc accepted this revision.May 10 2019, 1:38 PM

SLH bits LGTM.

This revision is now accepted and ready to land.May 10 2019, 1:38 PM
This revision was automatically updated to reflect the committed changes.