[all-commits] [llvm/llvm-project] ed2fda: [LV] Use separate index to access StoredValues in ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Nov 25 07:28:26 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed2fdace89425148dbf37cd7f0473671ca698e09
      https://github.com/llvm/llvm-project/commit/ed2fdace89425148dbf37cd7f0473671ca698e09
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-11-25 (Fri, 25 Nov 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    A llvm/test/Transforms/LoopVectorize/X86/vectorize-interleaved-accesses-gap.ll

  Log Message:
  -----------
  [LV] Use separate index to access StoredValues in vectorizeInterleave.

StoredValues only has entries for members of the interleave group. If
there are gaps, then using the index i here will either access a wrong
entry or be out-of-bounds.

Instead use a dedicated index that only gets incremented for members of
the interleave group.

Fixes #59090.




More information about the All-commits mailing list