Merging r259702:
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 17 Feb 2016 18:42:17 +0000 (18:42 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 17 Feb 2016 18:42:17 +0000 (18:42 +0000)
commit77c8a562e0c7c47df3bb988e2d230df6a9dcbe1d
treeec01489ac53a0db4eb27030cd305f42802bfab0d
parentc75c50f45b3d6d1d61ce6b411d12cedaadd71d5b
Merging r259702:
------------------------------------------------------------------------
r259702 | majnemer | 2016-02-03 13:30:34 -0800 (Wed, 03 Feb 2016) | 7 lines

[LoopStrengthReduce] Don't rewrite PHIs with incoming values from CatchSwitches

Bail out if we have a PHI on an EHPad that gets a value from a
CatchSwitchInst.  Because the CatchSwitchInst cannot be split, there is
no good place to stick any instructions.

This fixes PR26373.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@261126 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/Transforms/LoopStrengthReduce/funclet.ll