Move rematerialization out of beta.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 28 Mar 2007 08:26:40 +0000 (08:26 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 28 Mar 2007 08:26:40 +0000 (08:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35419 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index eb3ac31998ac2aedee2e5b22063800b14c4b069a..ff7b555d5637a25fc3cb835cb520c6f2d5ae9a6e 100644 (file)
@@ -50,11 +50,6 @@ namespace {
   EnableJoining("join-liveintervals",
                 cl::desc("Coallesce copies (default=true)"),
                 cl::init(true));
-
-  static cl::opt<bool>
-  EnableReMat("enable-rematerialization",
-                cl::desc("Perform trivial re-materialization"),
-                cl::init(false));
 }
 
 void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const {
@@ -436,8 +431,7 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
   // time we see a vreg.
   if (interval.empty()) {
     // Remember if the definition can be rematerialized.
-    if (EnableReMat &&
-        vi.DefInst && tii_->isReMaterializable(vi.DefInst->getOpcode()))
+    if (vi.DefInst && tii_->isReMaterializable(vi.DefInst->getOpcode()))
       interval.remat = vi.DefInst;
 
     // Get the Idx of the defining instructions.