[llvm] r274642 - [TTI] The cost model should not assume vector casts get completely scalarized
Jordy Potman via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 7 01:43:50 PDT 2016
Hi,
I know this functionality wasn't changed in this commit but I noticed that
the arguments to the getScalarizationOverhead call appear to be
inconsistent with the comment in the following piece of code:
@@ -480,8 +497,7 @@ public:
> Opcode, ValTy->getScalarType(), CondTy);
>
> // Return the cost of multiple scalar invocation plus the cost of
> - // inserting
> - // and extracting the values.
> + // inserting and extracting the values.
> return getScalarizationOverhead(ValTy, true, false) + Num * Cost;
> }
>
Shouldn't the getScalarizationOverhead call be:
getScalarizationOverhead(ValTy, true, true)
?
Jordy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160707/c07470f8/attachment.html>
More information about the llvm-commits
mailing list