[LoopStrengthReduce] Don't hoist into a catchswitch
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 24 Mar 2016 21:40:22 +0000 (21:40 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 24 Mar 2016 21:40:22 +0000 (21:40 +0000)
commite09d035dad21efbcd98b3f8c58af75709cc034e5
tree55b2c4a3b8a7c5e30f6d24e7450e00051f50b5ca
parent3cf9ff12c51e1a446f019c001472f30024583fda
[LoopStrengthReduce] Don't hoist into a catchswitch

We try to hoist the insertion point as high as possible to encourage
sharing.  However, we must be careful not to hoist into a catchswitch as
it is both an EHPad and a terminator.

llvm-svn: 264344
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/test/Transforms/LoopStrengthReduce/pr27056.ll [new file with mode: 0644]