[PATCH] D43822: [CloneFunction] Support BB == PredBB in DuplicateInstructionsInSplit.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 27 08:19:37 PST 2018

fhahn created this revision.
fhahn added reviewers: sanjoy, anna, reames.

In case PredBB == BB and StopAt == BB's terminator, StopAt != &*BI will
fail, because BB's terminator instruction gets replaced.

By using BB.getTerminator() we get the current terminator which we can use to compare.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43822.136082.patch
Type: text/x-patch
Size: 4578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180227/bcb7c50b/attachment.bin>

More information about the llvm-commits mailing list