[all-commits] [llvm/llvm-project] 4a6d31: [LV] Pass resume phi to fixReductionScalarResumeWh...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Jun 9 14:12:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a6d31f4bf0c48d8761993d397bcf458356ec78c
      https://github.com/llvm/llvm-project/commit/4a6d31f4bf0c48d8761993d397bcf458356ec78c
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-06-09 (Mon, 09 Jun 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [LV] Pass resume phi to fixReductionScalarResumeWhenVectorizing (NFC).

fixReductionScalarResumeWhenVectorizingEpilog updates the resume phis in
the scalar preheader. Instead of looking at all recipes in the middle
block and finding their resume-phi users we can iterate over all resume
phis in the scalar preheader directly.

This slightly simplifies the code and removes the need to look for the
resume phi.

Also slightly simplifies https://github.com/llvm/llvm-project/pull/141860.



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