aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-11-03 02:33:28 +0000
committerOwen Anderson <resistor@mac.com>2008-11-03 02:33:28 +0000
commitfa309532ac70b5ecb8c76588624b9adb700d0609 (patch)
tree829162e597fc2bc960dcf5aac0630dfe9cd93809 /lib/CodeGen
parent94b22442900824a52fd76136dbafa110faff5e18 (diff)
downloadexternal_llvm-fa309532ac70b5ecb8c76588624b9adb700d0609.zip
external_llvm-fa309532ac70b5ecb8c76588624b9adb700d0609.tar.gz
external_llvm-fa309532ac70b5ecb8c76588624b9adb700d0609.tar.bz2
Revert my last patch until I consult with Evan about it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/PreAllocSplitting.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp
index 4044b73..8f223b36 100644
--- a/lib/CodeGen/PreAllocSplitting.cpp
+++ b/lib/CodeGen/PreAllocSplitting.cpp
@@ -89,8 +89,6 @@ namespace {
AU.addPreservedID(StrongPHIEliminationID);
else
AU.addPreservedID(PHIEliminationID);
- AU.addRequired<MachineLoopInfo>();
- AU.addPreserved<MachineLoopInfo>();
MachineFunctionPass::getAnalysisUsage(AU);
}
@@ -635,14 +633,6 @@ bool PreAllocSplitting::SplitRegLiveInterval(LiveInterval *LI) {
assert(0 && "Val# is defined by a dead def?");
abort();
}
-
- // Pre-splitting a vreg that does not have a PHI kill across a barrier
- // that is within a loop can potentially create a join that was not
- // present before, which would make updating the live intervals very
- // difficult. Bailout instead.
- MachineLoopInfo& MLI = getAnalysis<MachineLoopInfo>();
- if (!ValNo->hasPHIKill && MLI.getLoopFor(BarrierMBB))
- return false;
// FIXME: For now, if definition is rematerializable, do not split.
MachineInstr *DefMI = (ValNo->def != ~0U)