[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)
commit511be2a158907c99ee3309e43e3d2a1031c83701
treefe31fa26fbe477b338924df3809bb51f1d8c4485
parent196931a7dd0ae09a8cec7261d59dba28b23a4e3c
[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.

llvm-svn: 367718
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
llvm/test/CodeGen/X86/statepoint-no-realign-stack.ll