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:
parent
58fe3dee5a
commit
f8e9922213
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user