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 | de189be53f5831737f38e720f10dbcdcce6876c6 (patch) | |
tree | b8217c6ad3e6ff091ec902a43be517d90415ccd4 /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 21d8b9bcad1f058a4f2571dbc5a677e0ed95643e (diff) |
add TLI support indicating that jumps are more expensive than logical operations
and use this to disable a specific optimization. Patch by Micah Villmow!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 12ca9291d9..b2c2dbb927 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/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; |