]> granicus.if.org Git - llvm/commit
[Statepoints] Fix overalignment of loads in no-realign-stack functions
authorPhilip Reames <listmail@philipreames.com>
Fri, 2 Aug 2019 20:17:37 +0000 (20:17 +0000)
committerPhilip Reames <listmail@philipreames.com>
Fri, 2 Aug 2019 20:17:37 +0000 (20:17 +0000)
commitb2360028079d5f94827a42d6c857a5ec216d99f9
tree88d9124e9cd174b1868d41b95c71268fec768ff6
parentf44f726c80d4551121010b114613585c9de79f6c
[Statepoints] Fix overalignment of loads in no-realign-stack functions

This really should have been part of 366765.  For some reason, I forgot to handle the corresponding load side, and the readable test cases (using deopt vs statepoints) turned out to be overly reduced.  Oops.

As seen in the test change, the problem was that we were using a load with alignment expectations rather than the unaligned variant when the stack alignment was less than that prefered type alignment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367718 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/StatepointLowering.cpp
test/CodeGen/X86/statepoint-no-realign-stack.ll