projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9170d59
)
fix inverted logic pointed out by John McCall, noticed by inspection.
author
Chris Lattner
<sabre@nondot.org>
Thu, 2 Jul 2009 15:39:39 +0000
(15:39 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 2 Jul 2009 15:39:39 +0000
(15:39 +0000)
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
lib/Transforms/Scalar/JumpThreading.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/JumpThreading.cpp
b/lib/Transforms/Scalar/JumpThreading.cpp
index c3aee01e64464ca0e4dc6dd35229d164f1924abd..611d24b13364fb0f7b2d00410aad38257127fa73 100644
(file)
--- 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;
}
}