aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-06-29 23:50:13 +0000
committerDevang Patel <dpatel@apple.com>2011-06-29 23:50:13 +0000
commit272511f518127aae8c96935689b5607455542863 (patch)
tree1ae7f6c106da7dbc244a393b10f46b771debcf02 /lib
parent9056e9032001a2d47057cecec5e39895cbc31799 (diff)
downloadexternal_llvm-272511f518127aae8c96935689b5607455542863.zip
external_llvm-272511f518127aae8c96935689b5607455542863.tar.gz
external_llvm-272511f518127aae8c96935689b5607455542863.tar.bz2
Revert r133953 for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/FastISel.cpp22
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
2 files changed, 0 insertions, 24 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp
index 580239a..ea7fead 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;
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 8cdc63d..87bb296 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -964,8 +964,6 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
else
++NumFastIselBlocks;
- if (FastIS)
- FastIS->recomputeDebugLocForMaterializedRegs();
if (Begin != BI) {
// Run SelectionDAG instruction selection on the remainder of the block
// not handled by FastISel. If FastISel is not run, this is the entire