Make pattern isel default for ppc

Add new ppc beta option related to using condition registers
Make pattern isel control flag (-enable-pattern-isel) global and tristate
  0 == off
  1 == on
  2 == target default


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21309 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nate Begeman
2005-04-15 22:12:16 +00:00
parent da3f296854
commit f8b02949e3
6 changed files with 43 additions and 19 deletions
+8 -3
View File
@@ -25,6 +25,7 @@ namespace llvm {
bool PrintMachineCode;
bool NoFramePointerElim;
bool NoExcessFPPrecision;
int PatternISelTriState;
};
namespace {
cl::opt<bool, true> PrintCode("print-machineinstrs",
@@ -38,9 +39,13 @@ namespace {
cl::init(false));
cl::opt<bool, true>
DisableExcessPrecision("disable-excess-fp-precision",
cl::desc("Disable optimizations that may increase FP precision"),
cl::location(NoExcessFPPrecision),
cl::init(false));
cl::desc("Disable optimizations that may increase FP precision"),
cl::location(NoExcessFPPrecision),
cl::init(false));
cl::opt<int, true> PatternISel("enable-pattern-isel",
cl::desc("sets the pattern ISel off(0), on(1), default(2)"),
cl::location(PatternISelTriState),
cl::init(2));
};
//---------------------------------------------------------------------------