[PATCH] D43824: [CallSiteSplitting] Do not crash when BB's terminator changes.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 27 09:24:20 PST 2018


fhahn created this revision.
fhahn added reviewers: junbuml, davidxl, davide.

Change doCallSiteSplitting to iterate until we reach the terminator instruction.
tryToSplitCallSite can replace BB's terminator in case BB is a successor of
itself. Then IE will be invalidated and we also have to check the current
terminator.


https://reviews.llvm.org/D43824

Files:
  lib/Transforms/Scalar/CallSiteSplitting.cpp
  test/Transforms/CallSiteSplitting/split-loop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43824.136089.patch
Type: text/x-patch
Size: 3737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180227/74f3eadb/attachment.bin>


More information about the llvm-commits mailing list