summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/InlineCost.cpp
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
commit6f5ea6e49c6e0e44495256fa25d5871cac42107c (patch)
tree6cce51095d46a3cf9e26b29b5e09f170a344181b /llvm/lib/Transforms/Utils/InlineCost.cpp
parent3b81a821b4afa8082548748f8d11e3f38b88fa38 (diff)
downloadbcm5719-llvm-6f5ea6e49c6e0e44495256fa25d5871cac42107c.tar.gz
bcm5719-llvm-6f5ea6e49c6e0e44495256fa25d5871cac42107c.zip
simplify some code, shuffle and insertelt always return a vector.
llvm-svn: 53538
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineCost.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineCost.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineCost.cpp b/llvm/lib/Transforms/Utils/InlineCost.cpp
index c87e4b80f0f..c17705bf850 100644
--- a/llvm/lib/Transforms/Utils/InlineCost.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud