[all-commits] [llvm/llvm-project] 73e7f2: LoopVectorize: guard marking iv as scalar; fix bug...

Ramkumar Ramachandra via All-commits all-commits at lists.llvm.org
Thu Apr 18 06:41:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73e7f2ff70e64defcc59f707a8d2463dd4c79be0
      https://github.com/llvm/llvm-project/commit/73e7f2ff70e64defcc59f707a8d2463dd4c79be0
  Author: Ramkumar Ramachandra <ram.ramachandra at arm.com>
  Date:   2024-04-18 (Thu, 18 Apr 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/X86/pr72969.ll

  Log Message:
  -----------
  LoopVectorize: guard marking iv as scalar; fix bug (#88730)

When collecting loop scalars, LoopVectorize over-eagerly marks the
induction variable and its update as scalars after vectorization, even
if the induction variable update is a first-order recurrence. Guard the
process with this check, fixing a crash.

Fixes #72969.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list