[PATCH] [LICM] Store sink and indirectbr instructions

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Wed Nov 26 03:00:34 PST 2014


Hi atrick, hfinkel,

Loop simplify skips exit-block insertion when exits contain indirectbr instructions. This
leads to an assertion in LICM when trying to sink stores out of non-dedicated loop exits
containing indirectbr instructions. This patch fix this issue by re-checking for dedicated
exits in LICM prior to store sink attempts.

http://reviews.llvm.org/D6414

Files:
  lib/Transforms/Scalar/LICM.cpp
  test/Transforms/LICM/sinking.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6414.16638.patch
Type: text/x-patch
Size: 2177 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141126/0a991251/attachment.bin>


More information about the llvm-commits mailing list