[all-commits] [llvm/llvm-project] 8ec6a2: Reland [Inliner] Use store-to-load forwarding to r...

Jiří Filek via All-commits all-commits at lists.llvm.org
Tue May 5 09:52:41 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ec6a2d9197aacca3c9eead03f92b4f194ed84d8
      https://github.com/llvm/llvm-project/commit/8ec6a2d9197aacca3c9eead03f92b4f194ed84d8
  Author: Jiří Filek <jiri.filek at gmail.com>
  Date:   2026-05-05 (Tue, 05 May 2026)

  Changed paths:
    M llvm/lib/Transforms/IPO/Inliner.cpp
    A llvm/test/Transforms/Inline/inline_store_to_load.ll
    M llvm/test/Transforms/PhaseOrdering/inline-store-to-load.ll

  Log Message:
  -----------
  Reland [Inliner] Use store-to-load forwarding to resolve call arguments (#195526)

Adds store to load forwarding when inliner has successfully done some
inlining. This allows simplification of further inlining attempts and
can give them more precise cost analysis.

It allows to optimize away empty `std::set` and `std::map` in both
`libc++` and `libstdc++` and many other real world cases.

Reland of #190607. It was reverted since it was causing crashes in
#195135. These were crashes in `FindAvailableLoadedValue` on mixed
address space pointers and should be fixed by #195256



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