[all-commits] [llvm/llvm-project] b6476e: [LV] Retain branch in middle block when scalar epi...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Jun 17 09:15:31 PDT 2024


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

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

  Log Message:
  -----------
  [LV] Retain branch in middle block when scalar epilogue is needed (NFC)

splitBlock will create a unconditional branch between the middle block
and scalar preheader. Instead of creating and replacing the same branch
again when scalar epilogue is needed, simply add an early exit.

As suggested by @ayalz in
https://github.com/llvm/llvm-project/pull/92651 to clarify the existing
code.



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