]> granicus.if.org Git - llvm/commit
Factor out redzone ABI checks [NFCI]
authorPhilip Reames <listmail@philipreames.com>
Fri, 10 May 2019 22:55:42 +0000 (22:55 +0000)
committerPhilip Reames <listmail@philipreames.com>
Fri, 10 May 2019 22:55:42 +0000 (22:55 +0000)
commitdefb1cae318217c316222fb62a15b2cc1a453435
treeb228908225ee6af1bff9823d8222c9f99222aa4e
parentfdcfe3e84def5e9ad7c5211f6c4ed495f369475a
Factor out redzone ABI checks [NFCI]

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.

Differential Revision: https://reviews.llvm.org/D61799

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360479 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
lib/Target/X86/X86FrameLowering.h
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86SpeculativeLoadHardening.cpp