[all-commits] [llvm/llvm-project] ca01f2: [LV] Enforce order of reductions with intermediate...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Oct 21 13:27:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca01f2af789680fa6a60af55c715e02b47d072d5
      https://github.com/llvm/llvm-project/commit/ca01f2af789680fa6a60af55c715e02b47d072d5
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-10-21 (Sat, 21 Oct 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [LV] Enforce order of reductions with intermediate stores in VPlan (NFC)

Reductions with intermediate stores currently need to be fixed in order
of their intermediate stores. Instead of doing this at fixup time after
code has been generated, sort the reductions in adjustRecipesForReductions.

This makes the order explicit in VPlan and will enable removing
fixReductions with modeling computing the final reduction result in
VPlan, followed by also modeling the intermediate stores explicitly.




More information about the All-commits mailing list