[all-commits] [llvm/llvm-project] ab6a69: [LV] Fix crash for reverse interleaved loads with ...

azaks via All-commits all-commits at lists.llvm.org
Tue Sep 21 10:39:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ab6a69dfea64d362dca300c3926733b9a599ad2c
      https://github.com/llvm/llvm-project/commit/ab6a69dfea64d362dca300c3926733b9a599ad2c
  Author: Ayal Zaks <ayal.zaks at intel.com>
  Date:   2021-09-21 (Tue, 21 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    A llvm/test/Transforms/LoopVectorize/pr51614-fold-tail-by-masking.ll

  Log Message:
  -----------
  [LV] Fix crash for reverse interleaved loads with gap under fold-tail.

This patch fixes the crash found by PR51614:
whenever doing tail folding, interleave groups must be considered under mask.

Another fix D108900 follows for targets that support masked loads and stores:
when *deciding* to vectorize with masked interleave groups, check if the access
is reverse - which is currently not supported; rather than (only) asserting when
computing cost and generating code.

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




More information about the All-commits mailing list