[llvm-commits] [llvm] r46903 - /llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
Evan Cheng
evan.cheng at apple.com
Sat Feb 9 00:36:29 PST 2008
Author: evancheng
Date: Sat Feb 9 02:36:28 2008
New Revision: 46903
URL: http://llvm.org/viewvc/llvm-project?rev=46903&view=rev
Log:
Remove unused hidden option.
Modified:
llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=46903&r1=46902&r2=46903&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Sat Feb 9 02:36:28 2008
@@ -51,11 +51,6 @@
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 @@
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.
More information about the llvm-commits
mailing list