[all-commits] [llvm/llvm-project] 995fd4: [LAA] Make sure MaxVF for Store-Load forward safe ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Apr 12 12:07:20 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 995fd47944f471e985e34d7da8c0667059decbac
      https://github.com/llvm/llvm-project/commit/995fd47944f471e985e34d7da8c0667059decbac
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-04-12 (Sat, 12 Apr 2025)

  Changed paths:
    M llvm/lib/Analysis/LoopAccessAnalysis.cpp
    M llvm/test/Transforms/LoopVectorize/RISCV/safe-dep-distance.ll

  Log Message:
  -----------
  [LAA] Make sure MaxVF for Store-Load forward safe dep distances is pow2.

MaxVF computed in couldPreventStoreLoadFowrard may not be a power of 2,
as CommonStride may not be a power-of-2.

This can cause crashes after 78777a20. Use bit_floor to make sure it is
a suitable power-of-2.

Fixes https://github.com/llvm/llvm-project/issues/134696.



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