summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/FastISel.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-07-19 00:28:24 +0000
committerDevang Patel <dpatel@apple.com>2011-07-19 00:28:24 +0000
commit497a397f3e4edeb102bb2e2509a3795feafaf742 (patch)
treed899a03c7d69f007fb2172fc9e6b92851ca15a68 /lib/CodeGen/SelectionDAG/FastISel.cpp
parent343c3a5005fd354aa84e7dbebd663f4fd5011a82 (diff)
downloadllvm-497a397f3e4edeb102bb2e2509a3795feafaf742.tar.gz
llvm-497a397f3e4edeb102bb2e2509a3795feafaf742.tar.bz2
llvm-497a397f3e4edeb102bb2e2509a3795feafaf742.tar.xz
Revert r135423.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/FastISel.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp
index 09102ece4b..f7203226df 100644
--- a/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/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;