From: Jakob Stoklund Olesen Date: Wed, 20 Jun 2012 23:31:34 +0000 (+0000) Subject: Remove the -live-regunits command line option. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c4118452bcdae305088e151719abb2a3530caede;p=oota-llvm.git Remove the -live-regunits command line option. Register allocators depend on it being permanently enabled now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158873 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index d660baeecae..2aea1e105cb 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -27,7 +27,6 @@ #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetMachine.h" -#include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" @@ -40,9 +39,6 @@ #include using namespace llvm; -// Temporary option to enable regunit liveness. -static cl::opt LiveRegUnits("live-regunits", cl::Hidden, cl::init(true)); - STATISTIC(numIntervals , "Number of original intervals"); char LiveIntervals::ID = 0; @@ -62,8 +58,7 @@ void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired(); AU.addPreserved(); AU.addPreservedID(MachineLoopInfoID); - if (LiveRegUnits) - AU.addRequiredTransitiveID(MachineDominatorsID); + AU.addRequiredTransitiveID(MachineDominatorsID); AU.addPreservedID(MachineDominatorsID); AU.addPreserved(); AU.addRequiredTransitive(); @@ -109,9 +104,8 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) { AA = &getAnalysis(); LV = &getAnalysis(); Indexes = &getAnalysis(); - if (LiveRegUnits) - DomTree = &getAnalysis(); - if (LiveRegUnits && !LRCalc) + DomTree = &getAnalysis(); + if (!LRCalc) LRCalc = new LiveRangeCalc(); AllocatableRegs = TRI->getAllocatableSet(fn); ReservedRegs = TRI->getReservedRegs(fn); @@ -120,9 +114,7 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) { numIntervals += getNumIntervals(); - if (LiveRegUnits) { - computeLiveInRegUnits(); - } + computeLiveInRegUnits(); DEBUG(dump()); return true; diff --git a/test/CodeGen/X86/misched-new.ll b/test/CodeGen/X86/misched-new.ll index f7b1467300e..8f2f6f7697d 100644 --- a/test/CodeGen/X86/misched-new.ll +++ b/test/CodeGen/X86/misched-new.ll @@ -1,5 +1,4 @@ ; RUN: llc -march=x86-64 -mcpu=core2 -enable-misched -misched=shuffle -misched-bottomup < %s -; RUN: llc -march=x86-64 -mcpu=core2 -enable-misched -misched=shuffle -misched-bottomup -live-regunits < %s ; REQUIRES: asserts ; ; Interesting MachineScheduler cases.