OSDN Git Service

[InstCombine] Don't sink an instr after a catchswitch
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 1 Apr 2016 17:28:17 +0000 (17:28 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 1 Apr 2016 17:28:17 +0000 (17:28 +0000)
commit8f6f6d0ceabef3250a1e882c8b529adb8680fa83
tree3b14cbcacb013a922111089007fd6a65791ba838
parent3f538b527eedb0a5025265f867aba5c70998bb4a
[InstCombine] Don't sink an instr after a catchswitch

A catchswitch is a terminator, instructions cannot be inserted after it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/sink-into-catchswitch.ll [new file with mode: 0644]