diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-05 01:29:04 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-05 01:29:04 +0000 |
commit | 381ca5572e3c37824e1c5be0fa02f7b5bdd4a1ce (patch) | |
tree | c02334338734ed659e10d2c93a824d7d93dae370 /lib | |
parent | 6e3ff375474c4fd78feb0b8463eb273a23cb4404 (diff) | |
download | external_llvm-381ca5572e3c37824e1c5be0fa02f7b5bdd4a1ce.zip external_llvm-381ca5572e3c37824e1c5be0fa02f7b5bdd4a1ce.tar.gz external_llvm-381ca5572e3c37824e1c5be0fa02f7b5bdd4a1ce.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index ca285c1..4dc725c 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -769,9 +769,6 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, FastIS->startNewBlock(BB); // Do FastISel on as many instructions as possible. for (; BI != End; ++BI) { - if (MDDbgKind) - SetDebugLoc(MDDbgKind, TheMetadata, BI, SDB, FastIS, &MF); - // Just before the terminator instruction, insert instructions to // feed PHI nodes in successor blocks. if (isa<TerminatorInst>(BI)) @@ -786,6 +783,9 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, break; } + if (MDDbgKind) + SetDebugLoc(MDDbgKind, TheMetadata, BI, SDB, FastIS, &MF); + // First try normal tablegen-generated "fast" selection. if (FastIS->SelectInstruction(BI)) { ResetDebugLoc(SDB, FastIS); |