OSDN Git Service

Merging r340900:
authorHans Wennborg <hans@hanshq.net>
Thu, 30 Aug 2018 09:34:31 +0000 (09:34 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 30 Aug 2018 09:34:31 +0000 (09:34 +0000)
commit224408d4a228ef685cc11e23a04e83b75dbd36e9
treedf60f96fa238203b2ff7506067b8186f5b4409e9
parentc19f813b10c10de39de1e4c9636a367777668100
Merging r340900:
------------------------------------------------------------------------
r340900 | hans | 2018-08-29 08:55:27 +0200 (Wed, 29 Aug 2018) | 6 lines

LoopSink: Don't sink into blocks without an insertion point (PR38462)

In the PR, LoopSink was trying to sink into a catchswitch block, which
doesn't have a valid insertion point.

Differential Revision: https://reviews.llvm.org/D51307
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@341048 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopSink.cpp
test/Transforms/LICM/loopsink-pr38462.ll [new file with mode: 0644]