[all-commits] [llvm/llvm-project] fd3111: [VPlan] Insert Trunc/Exts for reductions directly ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Oct 17 11:18:41 PDT 2023


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

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/epilog-vectorization-reductions.ll
    M llvm/test/Transforms/LoopVectorize/reduction-small-size.ll
    M llvm/test/Transforms/LoopVectorize/scalable-reduction-inloop.ll

  Log Message:
  -----------
  [VPlan] Insert Trunc/Exts for reductions directly in VPlan.

Update the code to create Trunc/Ext recipes directly in
adjustRecipesForReductions instead of fixing it up later in
fixReductions.

This explicitly models the required conversions and also makes sure they
are generated at the right place (instead of after the exit condition),
hence the changes in a few tests.




More information about the All-commits mailing list