[all-commits] [llvm/llvm-project] fd8afa: [VPlan] Use VPUser to manage CondBit

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


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

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/lib/Transforms/Vectorize/VPlanValue.h

  Log Message:
  -----------
  [VPlan] Use VPUser to manage CondBit

VP blocks keep track of a condition, which is a VPValue. This patch
updates VPBlockBase to manage the value using VPUser, so
replaceAllUsesWith properly updates the condition bit as well.

This is required to enable VP2VP transformations and it helps with
simplifying some of the code required to manage condition bits.

Reviewed By: gilr

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




More information about the All-commits mailing list