mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Don't blindly set the debug location for PHI node copies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90637 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -769,9 +769,6 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
|
|||||||
FastIS->startNewBlock(BB);
|
FastIS->startNewBlock(BB);
|
||||||
// Do FastISel on as many instructions as possible.
|
// Do FastISel on as many instructions as possible.
|
||||||
for (; BI != End; ++BI) {
|
for (; BI != End; ++BI) {
|
||||||
if (MDDbgKind)
|
|
||||||
SetDebugLoc(MDDbgKind, TheMetadata, BI, SDB, FastIS, &MF);
|
|
||||||
|
|
||||||
// Just before the terminator instruction, insert instructions to
|
// Just before the terminator instruction, insert instructions to
|
||||||
// feed PHI nodes in successor blocks.
|
// feed PHI nodes in successor blocks.
|
||||||
if (isa<TerminatorInst>(BI))
|
if (isa<TerminatorInst>(BI))
|
||||||
@@ -786,6 +783,9 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (MDDbgKind)
|
||||||
|
SetDebugLoc(MDDbgKind, TheMetadata, BI, SDB, FastIS, &MF);
|
||||||
|
|
||||||
// First try normal tablegen-generated "fast" selection.
|
// First try normal tablegen-generated "fast" selection.
|
||||||
if (FastIS->SelectInstruction(BI)) {
|
if (FastIS->SelectInstruction(BI)) {
|
||||||
ResetDebugLoc(SDB, FastIS);
|
ResetDebugLoc(SDB, FastIS);
|
||||||
|
Reference in New Issue
Block a user