1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

simplify some code, shuffle and insertelt always return a vector.

llvm-svn: 53538
This commit is contained in:
Chris Lattner 2008-07-14 00:32:20 +00:00
parent 58fe3dee5a
commit f8e9922213

View File

@ -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.