[all-commits] [llvm/llvm-project] fe990b: [WebAssembly] DebugValueManager ctor: scan only us...

Derek Schuff via All-commits all-commits at lists.llvm.org
Fri Mar 27 09:06:10 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe990b9005260bcf4a5630b577483e954c6bb60e
      https://github.com/llvm/llvm-project/commit/fe990b9005260bcf4a5630b577483e954c6bb60e
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2026-03-27 (Fri, 27 Mar 2026)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp

  Log Message:
  -----------
  [WebAssembly] DebugValueManager ctor: scan only uses instead of whole BB (#188871)

The DebugValueManager constructor scans the basic block to find all DEBUG_VALUE
uses of a def. This can lead to quadratic behavior as reported in #168326.
Instead, use MRI.use_instructions to find only the def's uses to limit the
search.
We still scan the BB so that we get the uses in order, and so we can stop
when a new def is found.



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