[llvm-commits] [llvm] r53538 - /llvm/trunk/lib/Transforms/Utils/InlineCost.cpp
Chris Lattner
sabre at nondot.org
Sun Jul 13 17:32:20 PDT 2008
Author: lattner
Date: Sun Jul 13 19:32:20 2008
New Revision: 53538
URL: http://llvm.org/viewvc/llvm-project?rev=53538&view=rev
Log:
simplify some code, shuffle and insertelt always return a vector.
Modified:
llvm/trunk/lib/Transforms/Utils/InlineCost.cpp
Modified: llvm/trunk/lib/Transforms/Utils/InlineCost.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InlineCost.cpp?rev=53538&r1=53537&r2=53538&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InlineCost.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InlineCost.cpp Sun Jul 13 19:32:20 2008
@@ -103,8 +103,7 @@
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.
More information about the llvm-commits
mailing list