[all-commits] [llvm/llvm-project] e248d6: Recommit "[LAA] Support pointer phis in loop by an...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Sep 14 03:19:52 PDT 2021


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

  Changed paths:
    M llvm/include/llvm/Analysis/LoopAccessAnalysis.h
    M llvm/lib/Analysis/LoopAccessAnalysis.cpp
    M llvm/test/Analysis/LoopAccessAnalysis/pointer-phis.ll
    M llvm/test/Transforms/LoopDistribute/pointer-phi-in-loop.ll
    M llvm/test/Transforms/LoopVectorize/vectorize-pointer-phis.ll

  Log Message:
  -----------
  Recommit "[LAA] Support pointer phis in loop by analyzing each incoming pointer."

SCEV does not look through non-header PHIs inside the loop. Such phis
can be analyzed by adding separate accesses for each incoming pointer
value.

This results in 2 more loops vectorized in SPEC2000/186.crafty and
avoids regressions when sinking instructions before vectorizing.

Fixes PR50296, PR50288.

Reviewed By: Meinersbur

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




More information about the All-commits mailing list