diff options
author | Owen Anderson <resistor@mac.com> | 2008-10-07 20:22:28 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-10-07 20:22:28 +0000 |
commit | 1d338fc6a4c6f2711d90350ce18e8cdff58be7eb (patch) | |
tree | 4966ca489f4e1c1325bdc8fc6c55614828b95d1f /llvm/lib/Target/TargetMachine.cpp | |
parent | c084e840280e5ac7ac7bf33711ad7a923d6183cc (diff) | |
download | bcm5719-llvm-1d338fc6a4c6f2711d90350ce18e8cdff58be7eb.tar.gz bcm5719-llvm-1d338fc6a4c6f2711d90350ce18e8cdff58be7eb.zip |
Add an option to enable StrongPHIElimination, for ease of testing.
llvm-svn: 57259
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 90efb74bc91..c05efd041ea 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -39,6 +39,7 @@ namespace llvm { bool RealignStack; bool VerboseAsm; bool DisableJumpTables; + bool StrongPHIElim; } static cl::opt<bool, true> PrintCode("print-machineinstrs", @@ -157,6 +158,12 @@ DisableSwitchTables(cl::Hidden, "disable-jump-tables", cl::location(DisableJumpTables), cl::init(false)); +static cl::opt<bool, true> +EnableStrongPHIElim(cl::Hidden, "strong-phi-elim", + cl::desc("Use strong PHI elimination."), + cl::location(StrongPHIElim), + cl::init(false)); + //--------------------------------------------------------------------------- // TargetMachine Class // |