Use an offset from TOS for idempotent rmw locked op lowering
authorPhilip Reames <listmail@philipreames.com>
Tue, 14 May 2019 22:32:42 +0000 (22:32 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 14 May 2019 22:32:42 +0000 (22:32 +0000)
commit445f942fc49821b2c0964f595c9d9fc8f9177308
tree11c08a47af761b2ebb900405a6270ca6139abb37
parentf3011b9b106b2d0961d5a825823e8fcc711e0abe
Use an offset from TOS for idempotent rmw locked op lowering

This was the portion split off D58632 so that it could follow the redzone API cleanup. Note that I changed the offset preferred from -8 to -64. The difference should be very minor, but I thought it might help address one concern which had been previously raised.

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

llvm-svn: 360719
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/atomic-idempotent.ll
llvm/test/CodeGen/X86/speculative-load-hardening.ll