summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit9ab3cac69468462fd0bf770d3a80912c611094ae (patch)
tree2de7d294765d8966e4ae6f7fe2125e1d001ec658 /llvm/lib/CodeGen
parent532114e8a4306b6881ad655d92bbd355aca39cef (diff)
downloadbcm5719-llvm-9ab3cac69468462fd0bf770d3a80912c611094ae.tar.gz
bcm5719-llvm-9ab3cac69468462fd0bf770d3a80912c611094ae.zip
Revert r135423.
llvm-svn: 135454
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp22
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
2 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index 09102ece4b2..f7203226df0 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;
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index d3cb0fedef0..87bb296b8c7 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -964,8 +964,6 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
else
++NumFastIselBlocks;
- if (FastIS && LLVMBB != &Fn.getEntryBlock())
- 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
OpenPOWER on IntegriCloud