[all-commits] [llvm/llvm-project] e48b1e: [LV] Split off invariance check from isUniform (NF...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Jun 1 11:09:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e48b1e87a319e2e6645d8bb4b08432a7fd08e0b9
      https://github.com/llvm/llvm-project/commit/e48b1e87a319e2e6645d8bb4b08432a7fd08e0b9
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/LoopAccessAnalysis.h
    M llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
    M llvm/lib/Analysis/LoopAccessAnalysis.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [LV] Split off invariance check from isUniform (NFCI).

After 572cfa3fde5433, isUniform now checks VF based uniformity instead of
just invariance as before.

As follow-up cleanup suggested in D148841, separate the invariance check
out and update callers that currently check only for invariance.

This also moves the implementation of isUniform from LoopAccessAnalysis
to LoopVectorizationLegality, as LoopAccesAnalysis doesn't use the more
general isUniform.




More information about the All-commits mailing list