[PATCH] D53865: [LoopVectorizer] Improve computation of scalarization overhead.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 12 12:54:09 PST 2018


efriedma added a comment.

> Are you proposing some kind of search over instruction sequences with some limited lookahead?

Yes, something like this.

> I suspect that an algorithm that makes these decisions would benefit from knowing which instructions the target *must* scalarize

I think you would just start with instructions where the cost model says that VectorOperationCost > ScalarOperationCost*VF.  It doesn't really matter why it's expensive.  (I guess at some point, we might want to model which execution units are used by a vector instruction, but I think you'd want a different interface for that.)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D53865/new/

https://reviews.llvm.org/D53865





More information about the llvm-commits mailing list