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:
de29d92
)
simplify some code, shuffle and insertelt always return a vector.
author
Chris Lattner
<sabre@nondot.org>
Mon, 14 Jul 2008 00:32:20 +0000
(
00:32
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 14 Jul 2008 00:32:20 +0000
(
00:32
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53538
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/InlineCost.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/InlineCost.cpp
b/lib/Transforms/Utils/InlineCost.cpp
index c87e4b80f0f6b2cf78ec9a9ef077a1439ec9e7ef..c17705bf85090504a74bfe0681d1d839e1791a63 100644
(file)
--- a/
lib/Transforms/Utils/InlineCost.cpp
+++ b/
lib/Transforms/Utils/InlineCost.cpp
@@
-103,8
+103,7
@@
void InlineCostAnalyzer::FunctionInfo::analyzeFunction(Function *F) {
if (isa<DbgInfoIntrinsic>(II)) continue; // Debug intrinsics don't count.
if (isa<PHINode>(II)) continue; // PHI nodes don't count.
- if (isa<InsertElementInst>(II) || isa<ExtractElementInst>(II) ||
- isa<ShuffleVectorInst>(II) || isa<VectorType>(II->getType()))
+ if (isa<ExtractElementInst>(II) || isa<VectorType>(II->getType()))
++NumVectorInsts;
// Noop casts, including ptr <-> int, don't count.