Remove unused hidden option.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 9 Feb 2008 08:36:28 +0000 (08:36 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 9 Feb 2008 08:36:28 +0000 (08:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46903 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SimpleRegisterCoalescing.cpp

index de94688e3abf7525034b5a5a09a8c8a3c734731c..d1b65c4748b7ba84561ac2571e431bfc2f94adb2 100644 (file)
@@ -51,11 +51,6 @@ namespace {
                 cl::desc("Use new coalescer heuristic"),
                 cl::init(false));
 
-  static cl::opt<bool>
-  ReMatSpillWeight("tweak-remat-spill-weight",
-                   cl::desc("Tweak spill weight of re-materializable intervals"),
-                   cl::init(true));
-
   RegisterPass<SimpleRegisterCoalescing> 
   X("simple-register-coalescing", "Simple Register Coalescing");
 
@@ -1496,7 +1491,7 @@ bool SimpleRegisterCoalescing::runOnMachineFunction(MachineFunction &fn) {
         LI.weight = HUGE_VALF;
       else {
         bool isLoad = false;
-        if (ReMatSpillWeight && li_->isReMaterializable(LI, isLoad)) {
+        if (li_->isReMaterializable(LI, isLoad)) {
           // If all of the definitions of the interval are re-materializable,
           // it is a preferred candidate for spilling. If non of the defs are
           // loads, then it's potentially very cheap to re-materialize.