[all-commits] [llvm/llvm-project] 7fd021: [LV] Don't crash on vector masks during scalar VPR...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Nov 18 13:52:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7fd021a0929094bc4b6407896b735b7d360df36c
      https://github.com/llvm/llvm-project/commit/7fd021a0929094bc4b6407896b735b7d360df36c
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-11-18 (Sat, 18 Nov 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/strict-fadd-interleave-only.ll

  Log Message:
  -----------
  [LV] Don't crash on vector masks during scalar VPReductionRecipe::exec.

VPReductionRecipe may be executed for scalar VFs. Make sure to access
part 0 of the condition, as it could be an active-lane-mask, which is a
vector <1 x i1>

Fixes https://github.com/llvm/llvm-project/issues/72720.




More information about the All-commits mailing list