[all-commits] [llvm/llvm-project] 1746ac: [LV] Forget SCEVs for exit phis after vectorization.

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Jul 4 13:28:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1746ac42cae1dbe5fdef2af8e887a7e6015605ec
      https://github.com/llvm/llvm-project/commit/1746ac42cae1dbe5fdef2af8e887a7e6015605ec
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    A llvm/test/Transforms/LoopVectorize/scev-exit-phi-invalidation.ll

  Log Message:
  -----------
  [LV] Forget SCEVs for exit phis after vectorization.

After vectorization, the exit blocks of the original loop will have additional
predecessors. Invalidate SCEVs for the exit phis in case SE looked through
single-entry phis.

Fixes https://github.com/llvm/llvm-project/issues/63368
Fixes https://github.com/llvm/llvm-project/issues/63669




More information about the All-commits mailing list