[LICM] update BlockColors after splitting predecessors
authorJun Bum Lim <junbuml@codeaurora.org>
Mon, 12 Feb 2018 17:56:55 +0000 (17:56 +0000)
committerJun Bum Lim <junbuml@codeaurora.org>
Mon, 12 Feb 2018 17:56:55 +0000 (17:56 +0000)
commit144eb593ddc243097f50a4e18008a686cbe0778c
treee7953c8c85167f8f127223530792c9907e2da8ba
parent2908a04301a959b44b60d66c1fc5b051e7b86c28
[LICM] update BlockColors after splitting predecessors

Update BlockColors after splitting predecessors. Do not allow splitting
EHPad for sinking when the BlockColors is not empty, so we can
simply assign predecessor's color to the new block.

Fixes PR36184

llvm-svn: 324916
llvm/lib/Transforms/Scalar/LICM.cpp
llvm/test/Transforms/LICM/sinking.ll