[PATCH] D92178: [InstructionCost] Migrate to using InstructionCost in LoopVectorize.cpp

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 06:42:31 PST 2020


david-arm created this revision.
david-arm added reviewers: sdesmalen, CarolineConcatto, ctetreau, dmgreen.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
david-arm requested review of this revision.

This patch is part of a series of patches that migrate integer
instruction costs to use InstructionCost. I've changed
selectVectorizationFactor to use a different algorithm for
comparing costs, since now the costs are integer based. I
believe we get the same result as we had previously with
float values.

See this patch for the introduction of the type: https://reviews.llvm.org/D91174
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92178

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92178.307859.patch
Type: text/x-patch
Size: 7944 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201126/d0036604/attachment.bin>


More information about the llvm-commits mailing list