OSDN Git Service

[Sink] Don't move landingpads
authorKeno Fischer <kfischer@college.harvard.edu>
Mon, 16 Nov 2015 04:47:58 +0000 (04:47 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Mon, 16 Nov 2015 04:47:58 +0000 (04:47 +0000)
commit888d479702d42688f55399530f867d2db118ffaa
treed1ca76971621d8d3558aaaa150ece31b64e7628b
parent253c92969160b1753c0acda23a7a0cab029e056b
[Sink] Don't move landingpads

Summary: Moving landingpads into successor basic blocks makes the
verifier sad. Teach Sink that much like PHI nodes and terminator
instructions, landingpads (and cleanuppads, etc.) may not be moved
between basic blocks.

Reviewers: majnemer

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D14475

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253182 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Sink.cpp
test/Transforms/Sink/landingpad.ll [new file with mode: 0644]