mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
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
This commit is contained in:
parent
de29d92420
commit
4238453135
@ -103,8 +103,7 @@ void InlineCostAnalyzer::FunctionInfo::analyzeFunction(Function *F) {
|
|||||||
if (isa<DbgInfoIntrinsic>(II)) continue; // Debug intrinsics don't count.
|
if (isa<DbgInfoIntrinsic>(II)) continue; // Debug intrinsics don't count.
|
||||||
if (isa<PHINode>(II)) continue; // PHI nodes don't count.
|
if (isa<PHINode>(II)) continue; // PHI nodes don't count.
|
||||||
|
|
||||||
if (isa<InsertElementInst>(II) || isa<ExtractElementInst>(II) ||
|
if (isa<ExtractElementInst>(II) || isa<VectorType>(II->getType()))
|
||||||
isa<ShuffleVectorInst>(II) || isa<VectorType>(II->getType()))
|
|
||||||
++NumVectorInsts;
|
++NumVectorInsts;
|
||||||
|
|
||||||
// Noop casts, including ptr <-> int, don't count.
|
// Noop casts, including ptr <-> int, don't count.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user