The saved registers weren't being processed in the correct order. This lead to
authorBill Wendling <isanbard@gmail.com>
Wed, 14 Dec 2011 23:53:24 +0000 (23:53 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 14 Dec 2011 23:53:24 +0000 (23:53 +0000)
commit10e412ec6b761952b95710203e6d2d89f4fee53a
tree1a1c85890de77aff67b614cb2af6bb98037cbf98
parentf0426601977c3e386d2d26c72a2cca691dc42072
The saved registers weren't being processed in the correct order. This lead to
the compact unwind claiming that one register was saved before another, which
isn't all that great in general. Process them in the natural order. Reverse the
list only when necessary for the algorithm.

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