[all-commits] [llvm/llvm-project] d4626e: [VPlan][NFC] Introduce constructors for VPIteration

david-arm via All-commits all-commits at lists.llvm.org
Wed Feb 3 01:30:55 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4626eb0bd5b9331b2f62cadd726eca7c2e7890a
      https://github.com/llvm/llvm-project/commit/d4626eb0bd5b9331b2f62cadd726eca7c2e7890a
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

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

  Log Message:
  -----------
  [VPlan][NFC] Introduce constructors for VPIteration

This patch adds constructors to VPIteration as a cleaner way of
initialising the struct and replaces existing constructions of
the form:

  {Part, Lane}

with

  VPIteration(Part, Lane)

I have also added a default constructor, which is used by VPlan.cpp
when deciding whether to replicate a block or not.

This refactoring will be required in a later patch that adds more
members and functions to VPIteration.

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




More information about the All-commits mailing list