aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-02 15:39:39 +0000
committerChris Lattner <sabre@nondot.org>2009-07-02 15:39:39 +0000
commit8afb2667ae8851e383620c76f7579a320f5f24de (patch)
tree0ff3133955bf7e2bfb68f277179902365cfc280e
parent50e4cd66b2c7e8308fddfa87740c8ce5d6cc0508 (diff)
downloadexternal_llvm-8afb2667ae8851e383620c76f7579a320f5f24de.zip
external_llvm-8afb2667ae8851e383620c76f7579a320f5f24de.tar.gz
external_llvm-8afb2667ae8851e383620c76f7579a320f5f24de.tar.bz2
fix inverted logic pointed out by John McCall, noticed by inspection.
This was considering vector intrinsics to have cost 2, but non-vector intrinsics to have cost 1, which is backward. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74698 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/JumpThreading.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/JumpThreading.cpp b/lib/Transforms/Scalar/JumpThreading.cpp
index c3aee01..611d24b 100644
--- a/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/lib/Transforms/Scalar/JumpThreading.cpp
@@ -207,7 +207,7 @@ static unsigned getJumpThreadDuplicationCost(const BasicBlock *BB) {
if (const CallInst *CI = dyn_cast<CallInst>(I)) {
if (!isa<IntrinsicInst>(CI))
Size += 3;
- else if (isa<VectorType>(CI->getType()))
+ else if (!isa<VectorType>(CI->getType()))
Size += 1;
}
}