[all-commits] [llvm/llvm-project] 2d60d7: [LoopVectorize][Fix] Crash when invariant store ad...

Igor Kirillov via All-commits all-commits at lists.llvm.org
Wed Sep 28 02:38:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d60d7ba1a26c50d90a518a6ebde4f08a8d1ac04
      https://github.com/llvm/llvm-project/commit/2d60d7ba1a26c50d90a518a6ebde4f08a8d1ac04
  Author: Igor Kirillov <Igor.Kirillov at arm.com>
  Date:   2022-09-28 (Wed, 28 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
    M llvm/test/Transforms/LoopVectorize/reduction-with-invariant-store.ll

  Log Message:
  -----------
  [LoopVectorize][Fix] Crash when invariant store address is calculated inside loop

Fixes #57572

Generally LICM pass is responsible for sinking out code that calculates
invariant address inside loop as it only needed to be calculated once.
But in rare case it does not happen we will not be vectorizing the
loop.

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




More information about the All-commits mailing list