diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-11-30 18:12:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-11-30 18:12:52 +0000 |
| commit | ea41dfe385f9e21a1d8dacc43378383f01fa361d (patch) | |
| tree | 113ba748ab85e551cef641787e3d311fdaa40d28 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
| parent | 4bb6ceb7647e7191a2cebde4c91c1576ca35bfac (diff) | |
| download | llvm-ea41dfe385f9e21a1d8dacc43378383f01fa361d.zip llvm-ea41dfe385f9e21a1d8dacc43378383f01fa361d.tar.gz llvm-ea41dfe385f9e21a1d8dacc43378383f01fa361d.tar.bz2 | |
add TLI support indicating that jumps are more expensive than logical operations
and use this to disable a specific optimization. Patch by Micah Villmow!
llvm-svn: 120435
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 12ca929..b2c2dbb 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -572,6 +572,7 @@ TargetLowering::TargetLowering(const TargetMachine &tm, SelectIsExpensive = false; IntDivIsCheap = false; Pow2DivIsCheap = false; + JumpIsExpensive = false; StackPointerRegisterToSaveRestore = 0; ExceptionPointerRegister = 0; ExceptionSelectorRegister = 0; |
