Reverse ordering of base and derived pointer during safepoint lowering.
authorIgor Laevsky <igmyrj@gmail.com>
Tue, 12 May 2015 13:12:14 +0000 (13:12 +0000)
committerIgor Laevsky <igmyrj@gmail.com>
Tue, 12 May 2015 13:12:14 +0000 (13:12 +0000)
commit87ef5eaf469a70e73febbaad517082896e0f08cf
tree88467c239f8786ff90a7deb5a3121f37d5ae65b3
parent5c8f90b1add6831074efeccf67561d0ce62cb299
Reverse ordering of base and derived pointer during safepoint lowering.

According to the documentation in StackMap section for the safepoint we should have:
"The first Location in each pair describes the base pointer for the object. The second is the derived pointer actually being relocated."
But before this change we emitted them in reverse order - derived pointer first, base pointer second.

llvm-svn: 237126
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
llvm/test/CodeGen/X86/statepoint-stack-usage.ll
llvm/test/CodeGen/X86/statepoint-stackmap-format.ll