diff options
| author | Devang Patel <dpatel@apple.com> | 2011-06-29 23:50:13 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-06-29 23:50:13 +0000 |
| commit | 0eada032161b22eb1a113b5b0522585538a9fce4 (patch) | |
| tree | 6f0130e9c0dd941e6f673ddb5afcc12b36e83138 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
| parent | 8fa4ada5cfa99c3f4d3547ee9f7bc4d674b2016f (diff) | |
| download | bcm5719-llvm-0eada032161b22eb1a113b5b0522585538a9fce4.tar.gz bcm5719-llvm-0eada032161b22eb1a113b5b0522585538a9fce4.zip | |
Revert r133953 for now.
llvm-svn: 134116
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 580239af99f..ea7feade60d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -292,28 +292,6 @@ void FastISel::recomputeInsertPt() { ++FuncInfo.InsertPt; } -/// recomputeDebugLocForMaterializedRegs - Recompute debug location for -/// very first instruction in a basic block. All instructions emitted -/// to materialize registers do not have location information, see -/// enterLocalValueArea(), becase they may not be emited at the right -/// location. -void FastISel::recomputeDebugLocForMaterializedRegs() { - if (!getLastLocalValue()) - return; - MachineInstr *First = FuncInfo.MBB->getFirstNonPHI(); - if (!First->getDebugLoc().isUnknown()) - return; - - for (MachineBasicBlock::iterator I = FuncInfo.MBB->begin(), - E = FuncInfo.MBB->end(); I != E; ++I) { - DebugLoc DL = I->getDebugLoc(); - if (!DL.isUnknown()) { - First->setDebugLoc(DL); - return; - } - } -} - FastISel::SavePoint FastISel::enterLocalValueArea() { MachineBasicBlock::iterator OldInsertPt = FuncInfo.InsertPt; DebugLoc OldDL = DL; |

