[HotColdSplitting] Disable outlining landingpad instructions (PR39917)
authorVedant Kumar <vsk@apple.com>
Tue, 11 Dec 2018 18:05:31 +0000 (18:05 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 11 Dec 2018 18:05:31 +0000 (18:05 +0000)
commitb3a7cae045020674f40adfec2d1e3a7a7581031c
treea25d5ce3c4d9754efa4757c36caf4efad047ea81
parent9569523ab27162b87113a3fc1b227413a4a8a98e
[HotColdSplitting] Disable outlining landingpad instructions (PR39917)

It's currently not safe to outline landingpad instructions (see
llvm.org/PR39917). Like @llvm.eh.typeid.for, the order and content of
previous landingpad instructions in a function alters the lowering of
subsequent landingpads by renumbering type info ID's. Outlining a
landingpad therefore breaks exception handling & unwinding.

llvm-svn: 348870
llvm/lib/Transforms/IPO/HotColdSplitting.cpp
llvm/test/Transforms/HotColdSplit/eh-pads.ll