diff options
author | Owen Anderson <resistor@mac.com> | 2008-08-04 23:54:43 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-08-04 23:54:43 +0000 |
commit | a102290bdcc20fbc421ac706714cf98c19adc35c (patch) | |
tree | c6935c9b899a6dccb4c780fb4d289093e0a41747 /llvm/lib/Target/TargetMachine.cpp | |
parent | 61f67624c3a3fc56f6445e9f533d06fbcfa0ef18 (diff) | |
download | bcm5719-llvm-a102290bdcc20fbc421ac706714cf98c19adc35c.tar.gz bcm5719-llvm-a102290bdcc20fbc421ac706714cf98c19adc35c.zip |
- Fix SelectionDAG to generate correct CFGs.
- Add a basic machine-level dead block eliminator.
These two have to go together, since many other parts of the code generator are unable to handle the unreachable blocks otherwise created.
llvm-svn: 54333
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 600a120e867..29167631baa 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -40,6 +40,7 @@ namespace llvm { bool RealignStack; bool VerboseAsm; bool DisableJumpTables; + bool DisableCorrectBranchFolding; } static cl::opt<bool, true> PrintCode("print-machineinstrs", @@ -163,6 +164,11 @@ DisableSwitchTables(cl::Hidden, "disable-jump-tables", cl::location(DisableJumpTables), cl::init(false)); +static cl::opt<bool, true> +DisableCorrectISelFolding(cl::Hidden, "disable-correct-folding", +cl::desc("Do not perform correct branch folding in the instruction selector."), +cl::location(DisableCorrectBranchFolding), cl::init(false)); + //--------------------------------------------------------------------------- // TargetMachine Class // |