diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-02 15:39:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-02 15:39:39 +0000 |
commit | 62c762f329cb16783f19b075bb2fefe35b5d5879 (patch) | |
tree | 0ff3133955bf7e2bfb68f277179902365cfc280e /lib/Transforms | |
parent | 9170d592ee1828211d65e5e4e7ad97abeea88c75 (diff) | |
download | external_llvm-62c762f329cb16783f19b075bb2fefe35b5d5879.zip external_llvm-62c762f329cb16783f19b075bb2fefe35b5d5879.tar.gz external_llvm-62c762f329cb16783f19b075bb2fefe35b5d5879.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
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/JumpThreading.cpp | 2 |
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; } } |