aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-30 18:12:52 +0000
committerChris Lattner <sabre@nondot.org>2010-11-30 18:12:52 +0000
commitea41dfe385f9e21a1d8dacc43378383f01fa361d (patch)
tree113ba748ab85e551cef641787e3d311fdaa40d28 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent4bb6ceb7647e7191a2cebde4c91c1576ca35bfac (diff)
downloadllvm-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.cpp1
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;