[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...
Size: 4578 bytes
Desc: not available
More information about the llvm-commits