Don't punish vectorized arithmetic instruction whose type will be split to multiple...
[oota-llvm.git] / include / llvm / CodeGen / BasicTTIImpl.h
index e2245e9984b877e1eac33df70218c6fa9c080569..ec311a0938693ad5edb47f9ed1249a969e4d601f 100644 (file)
@@ -302,12 +302,8 @@ public:
 
     if (TLI->isOperationLegalOrPromote(ISD, LT.second)) {
       // The operation is legal. Assume it costs 1.
-      // If the type is split to multiple registers, assume that there is some
-      // overhead to this.
       // TODO: Once we have extract/insert subvector cost we need to use them.
-      if (LT.first > 1)
-        return LT.first * 2 * OpCost;
-      return LT.first * 1 * OpCost;
+      return LT.first * OpCost;
     }
 
     if (!TLI->isOperationExpand(ISD, LT.second)) {