[all-commits] [llvm/llvm-project] f6b6fb: [VectorUtils] Improve computeMinimumValueSizes (NF...

Ramkumar Ramachandra via All-commits all-commits at lists.llvm.org
Tue Apr 29 02:36:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6b6fb89ec291f677132f912030b9d57c5f7230e
      https://github.com/llvm/llvm-project/commit/f6b6fb89ec291f677132f912030b9d57c5f7230e
  Author: Ramkumar Ramachandra <ramkumar.ramachandra at codasip.com>
  Date:   2025-04-29 (Tue, 29 Apr 2025)

  Changed paths:
    M llvm/lib/Analysis/VectorUtils.cpp

  Log Message:
  -----------
  [VectorUtils] Improve computeMinimumValueSizes (NFC) (#137692)

The Worklist used by computeMinimumValueSizes is wastefully a
Value-vector, when the top of the loop attempts to cast the popped value
to an Instruction anyway. Improve the algorithm by cutting this wasteful
work, refining the type of Worklist, Visited, and Roots from
Value-vectors to Instruction-vectors.



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