OSDN Git Service

[WinEH] Don't sink allocas into child handlers
authorReid Kleckner <reid@kleckner.net>
Mon, 6 Apr 2015 18:50:38 +0000 (18:50 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 6 Apr 2015 18:50:38 +0000 (18:50 +0000)
commitebb3c53316538e6799f727ade65ce95606f3cd05
treeba3d37376e3a7639d770edc43309387c4f229f79
parent8af3f965e08414c95165d9014c2f5397932aad23
[WinEH] Don't sink allocas into child handlers

The uselist isn't enough to infer anything about the lifetime of such
allocas. If we want to re-add this optimization, we will need to
leverage lifetime markers to do it.

Fixes PR23122.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234196 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/WinEHPrepare.cpp
test/CodeGen/WinEH/cppeh-alloca-sink.ll [new file with mode: 0644]