[all-commits] [llvm/llvm-project] 07276e: [LV] Check VPValue operand instead of Cost::isUnif...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Dec 6 10:33:16 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 07276e49e31e10b5218e2382cedd0f1fe2cfca7d
      https://github.com/llvm/llvm-project/commit/07276e49e31e10b5218e2382cedd0f1fe2cfca7d
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-12-06 (Mon, 06 Dec 2021)

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

  Log Message:
  -----------
  [LV] Check VPValue operand instead of Cost::isUniformAfterVec (NFC).

ILV::scalarizeInstruction still uses the original IR operands to check
if an input value is uniform after vectorization.

There is no need to go back to the cost model to figure that out, as the
information is already explicit in the VPlan. Just check directly
whether the VPValue is defined outside the plan or is a uniform
VPReplicateRecipe.

Reviewed By: Ayal

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




More information about the All-commits mailing list