[all-commits] [llvm/llvm-project] 9cd4de: [LoopVectorize] Preserve CFG analyses if CFG wasn'...

max-azul via All-commits all-commits at lists.llvm.org
Fri Apr 24 03:22:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cd4debd5ae43b03c96a2f8f24c73c5fd317d8ac
      https://github.com/llvm/llvm-project/commit/9cd4debd5ae43b03c96a2f8f24c73c5fd317d8ac
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2020-04-24 (Fri, 24 Apr 2020)

  Changed paths:
    M llvm/include/llvm/Transforms/Vectorize/LoopVectorize.h
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/novect-lcssa-cfg-invalidation.ll

  Log Message:
  -----------
  [LoopVectorize] Preserve CFG analyses if CFG wasn't modified

One of transforms the loop vectorizer makes is LCSSA formation. In some cases it
is the only transform it makes. We should not drop CFG analyzes if only LCSSA was
formed and no actual CFG changes was made.

We should think of expanding this logic to other passes as well, and maybe make
it a part of PM framework.

Reviewed By: Florian Hahn
Differential Revision: https://reviews.llvm.org/D78360




More information about the All-commits mailing list