[all-commits] [llvm/llvm-project] e867b8: [LV] Always emit branch weights for vector epilogu...

David Sherwood via All-commits all-commits at lists.llvm.org
Tue Sep 2 02:15:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e867b8511814e75abbbe7048d505f84d4e686961
      https://github.com/llvm/llvm-project/commit/e867b8511814e75abbbe7048d505f84d4e686961
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2025-09-02 (Tue, 02 Sep 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/check-prof-info.ll

  Log Message:
  -----------
  [LV] Always emit branch weights for vector epilogue (#155437)

We currently only emit the branch weights for the epilogue
iteration count check if there was already branch weight
data for the scalar loop. However, the code makes no use
of the existing branch weight when estimating the
likelihood of taking a particular branch and so we can
just always add the branch weights regardless. These
hints should hopefully improve code generation.



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