[all-commits] [llvm/llvm-project] 4efa09: [LV] Allow tryToCreateWidenRecipe to return a VPVa...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Feb 23 08:54:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4efa097eb4c87d7ffe09a95a5b4ff372bdddda85
      https://github.com/llvm/llvm-project/commit/4efa097eb4c87d7ffe09a95a5b4ff372bdddda85
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
    M llvm/test/Transforms/LoopVectorize/single-value-blend-phis.ll

  Log Message:
  -----------
  [LV] Allow tryToCreateWidenRecipe to return a VPValue, use for blends.

Generalize the return value of tryToCreateWidenRecipe to return either a
newly create recipe or an existing VPValue. Use this to avoid creating
unnecessary VPBlendRecipes.

Fixes PR44800.




More information about the All-commits mailing list