summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-14 00:32:20 +0000
committerChris Lattner <sabre@nondot.org>2008-07-14 00:32:20 +0000
commit4238453135ed5808b4515f516ed7ccd1fe8a5750 (patch)
tree9ecc050f05290d9991c416dfd069c3d12144dd2e /lib
parentde29d924202b8c127ca1fc84f91c3e35d542bc7f (diff)
downloadllvm-4238453135ed5808b4515f516ed7ccd1fe8a5750.tar.gz
llvm-4238453135ed5808b4515f516ed7ccd1fe8a5750.tar.bz2
llvm-4238453135ed5808b4515f516ed7ccd1fe8a5750.tar.xz
simplify some code, shuffle and insertelt always return a vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Utils/InlineCost.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/InlineCost.cpp b/lib/Transforms/Utils/InlineCost.cpp
index c87e4b80f0..c17705bf85 100644
--- 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.