Poorly named option.

llvm-svn: 47400
This commit is contained in:
Evan Cheng 2008-02-20 20:57:32 +00:00
parent aaf11abe28
commit f3a7cd1c62
2 changed files with 4 additions and 3 deletions

View File

@ -46,8 +46,9 @@ STATISTIC(NumLoadMoved, "Number of loads moved below TokenFactor");
namespace {
static cl::opt<bool>
FoldAndInTest("x86-fold-and-in-test", cl::desc("Fold and operation in test"),
cl::init(false), cl::Hidden);
AlwaysFoldAndInTest("always-fold-and-in-test",
cl::desc("Always fold and operation in test"),
cl::init(true), cl::Hidden);
}
//===----------------------------------------------------------------------===//

View File

@ -248,7 +248,7 @@ def extloadi32i16 : PatFrag<(ops node:$ptr), (i32 (extloadi16 node:$ptr))>;
// An 'and' node with a single use.
def and_su : PatFrag<(ops node:$lhs, node:$rhs), (and node:$lhs, node:$rhs), [{
return !FoldAndInTest || N->hasOneUse();
return AlwaysFoldAndInTest || N->hasOneUse();
}]>;
//===----------------------------------------------------------------------===//