[all-commits] [llvm/llvm-project] d72fce: [VPlan] Add VPValue::isDefinedOutsideVectorRegions...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Oct 19 05:20:55 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d72fcee8f47d54a68cab516d7f5a422ba48687f4
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-10-19 (Wed, 19 Oct 2022)

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

  Log Message:
  [VPlan] Add VPValue::isDefinedOutsideVectorRegions helper (NFC).

@Ayal suggested a better named helper than using `!getDef()` to check if
a value is invariant across all parts.

The property we are using here is that the VPValue is defined outside
any vector loop region. There's a TODO left to handle recipes defined in
pre-header blocks.

Reviewed By: reames

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

More information about the All-commits mailing list