[PATCH] D89323: [LV] Costing for VPInstructions

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 13 08:55:17 PDT 2020


dmgreen created this revision.
dmgreen added reviewers: fhahn, Ayal, gilr, hsaito, SjoerdMeijer, rengolin.
Herald added subscribers: bmahjour, rogfer01, hiraditya.
Herald added a project: LLVM.
dmgreen requested review of this revision.
Herald added a subscriber: vkmr.

This adds basic costs for VPInstructions. Most are modelled using calls to TTI getArithmeticInstrCost or getCmpSelInstrCost or getIntrinsicInstrCost etc.

Selects however are expected to be free (either by being sunk out of the loop or be freely folded into another instruction), so have a zero cost.


https://reviews.llvm.org/D89323

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/VPlan.h
  llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
  llvm/lib/Transforms/Vectorize/VPlanPredicator.cpp
  llvm/lib/Transforms/Vectorize/VPlanPredicator.h
  llvm/lib/Transforms/Vectorize/VPlanSLP.cpp
  llvm/test/Transforms/LoopVectorize/X86/masked_load_store.ll
  llvm/unittests/Transforms/Vectorize/VPlanPredicatorTest.cpp
  llvm/unittests/Transforms/Vectorize/VPlanTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89323.297875.patch
Type: text/x-patch
Size: 64915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201013/6fb79e26/attachment.bin>


More information about the llvm-commits mailing list