[all-commits] [llvm/llvm-project] 8098f2: [LV] Use Legal::isUniform to detect uniform pointers.

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue May 30 08:45:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8098f2577efa4e0319a8252d8f8d7c382aa71986
      https://github.com/llvm/llvm-project/commit/8098f2577efa4e0319a8252d8f8d7c382aa71986
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/pr60831-sve-inv-store-crash.ll
    M llvm/test/Transforms/LoopVectorize/skeleton-lcssa-crash.ll

  Log Message:
  -----------
  [LV] Use Legal::isUniform to detect uniform pointers.

Update collectLoopUniforms to identify uniform pointers using
Legal::isUniform. This is more powerful and  brings pointer
classification here in sync with setCostBasedWideningDecision
which uses isUniformMemOp. The existing mis-match in reasoning
can causes crashes due to D134460, which is fixed by this patch.

Fixes https://github.com/llvm/llvm-project/issues/60831.

Reviewed By: Ayal

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




More information about the All-commits mailing list