[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)
commitfe3f9d1721002dcd7b7b6bd0a8223ed31131e2d5
tree96f2ff328edef427ae0d6e34e8e5e4e97b08f9cb
parent6f1f85f0e1bc88b1151080edddbe4794a0b81b32
[InstCombine] Don't sink an instr after a catchswitch

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

llvm-svn: 265158
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/sink-into-catchswitch.ll [new file with mode: 0644]