[WinEH] Moved funclet pads should be in relative order
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 18 Sep 2015 08:18:07 +0000 (08:18 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 18 Sep 2015 08:18:07 +0000 (08:18 +0000)
commit0115643a5be1128254b906e312579a24cb4b0b6c
treedc99c97f8325000ea0e71aff43bd867bc395ed13
parent43c0cee390ccfe0eff192a2d6e2f250298d70cd6
[WinEH] Moved funclet pads should be in relative order

We shifted the MachineBasicBlocks to the end of the MachineFunction in
DFS order.  This will not ensure that MachineBasicBlocks which fell
through to one another will remain contiguous.  Instead, implement
a stable sort algorithm for iplist.

This partially reverts commit r214150.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247978 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/ilist.h
include/llvm/CodeGen/MachineFunction.h
lib/CodeGen/FuncletLayout.cpp