HomePhabricator

[SimplifyCFG] In sinkLastInstruction correctly set debugloc of "common" inst

Authored by rob.lougher on Dec 15 2016, 8:17 AM.

Description

[SimplifyCFG] In sinkLastInstruction correctly set debugloc of "common" inst

Simplify CFG will try to sink the last instruction in a series of basic blocks,
creating a "common" instruction in the successor block (sinkLastInstruction).
When it does this, the debug location of the single instruction should be the
merged debug locations of the commoned instructions.

Differential Revision: https://reviews.llvm.org/D27590

llvm-svn: 289828