[LICM] Fix a small oversight introduced in r256763
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 4 Jan 2016 23:16:22 +0000 (23:16 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 4 Jan 2016 23:16:22 +0000 (23:16 +0000)
commit5216ace86d655833fb4e3f591a2f91b1cbdcead9
tree62116300cc720abef6175cdd7013a01df82be35c
parente14c161b0e3691e5004303766678ec939155fd42
[LICM] Fix a small oversight introduced in r256763

r256763 had promoteLoopAccessesToScalars check for the existence of a
catchswitch when the exit blocks were populated but
promoteLoopAccessesToScalars may be called with a prepopulated set of
exit blocks which would also need to be checked.

This fixes PR26019.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256788 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LICM.cpp
test/Transforms/LICM/funclet.ll