[all-commits] [llvm/llvm-project] 18138e: [VPlan] Introduce VPWidenSelectRecipe (NFC).

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Apr 13 00:36:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 18138e02529067144acd4bdb9c0ac09beac5cd3d
      https://github.com/llvm/llvm-project/commit/18138e02529067144acd4bdb9c0ac09beac5cd3d
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-04-13 (Mon, 13 Apr 2020)

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

  Log Message:
  -----------
  [VPlan] Introduce VPWidenSelectRecipe (NFC).

Widening a selects depends on whether the condition is loop invariant or
not. Rather than checking during codegen-time, the information can be
recorded at the VPlan construction time.

This was suggested as part of D76992, to reduce the reliance on
accessing the original underlying IR values.

Reviewers: gilr, rengolin, Ayal, hsaito

Reviewed By: gilr

Differential Revision: https://reviews.llvm.org/D77869




More information about the All-commits mailing list