diff options
author | Owen Anderson <resistor@mac.com> | 2008-11-03 02:33:28 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-11-03 02:33:28 +0000 |
commit | b067843863214ebd9032481e57605b181a198943 (patch) | |
tree | 0ae926f17d48f5cf7c5435e84594af9001aecc8a /llvm/lib/CodeGen/PreAllocSplitting.cpp | |
parent | 1384553cbe08c928f1848ed5e0c18eccf1af8ce0 (diff) | |
download | bcm5719-llvm-b067843863214ebd9032481e57605b181a198943.tar.gz bcm5719-llvm-b067843863214ebd9032481e57605b181a198943.zip |
Revert my last patch until I consult with Evan about it.
llvm-svn: 58591
Diffstat (limited to 'llvm/lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PreAllocSplitting.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/PreAllocSplitting.cpp b/llvm/lib/CodeGen/PreAllocSplitting.cpp index 4044b7365b7..8f223b36007 100644 --- a/llvm/lib/CodeGen/PreAllocSplitting.cpp +++ b/llvm/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) |