[all-commits] [llvm/llvm-project] 7858e1: [LV] Amend check for IV increments in collectUsers...

Hari Limaye via All-commits all-commits at lists.llvm.org
Wed Sep 11 08:43:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7858e14547c509c95503b74ff8ffc7bf2fc5b110
      https://github.com/llvm/llvm-project/commit/7858e14547c509c95503b74ff8ffc7bf2fc5b110
  Author: Hari Limaye <hari.limaye at arm.com>
  Date:   2024-09-11 (Wed, 11 Sep 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    A llvm/test/Transforms/LoopVectorize/use-iv-start-value.ll

  Log Message:
  -----------
  [LV] Amend check for IV increments in collectUsersInEntryBlock (#108020)

The check for IV increments in collectUsersInEntryBlock currently
triggers for exit-block PHIs which use the IV start value, resulting in
us failing to add the input value for the middle block to these PHIs.

Fix this by amending the check for IV increments to only include
incoming values that are instructions inside the loop.

Fixes #108004



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