[all-commits] [llvm/llvm-project] 4ed8bf: LiveRangeShrink: Early exit when encountering a co...

Peter Collingbourne via All-commits all-commits at lists.llvm.org
Thu Apr 24 12:45:12 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ed8bfd0c3949dbf4e3042bd35eb274373e55cf7
      https://github.com/llvm/llvm-project/commit/4ed8bfd0c3949dbf4e3042bd35eb274373e55cf7
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M llvm/lib/CodeGen/LiveRangeShrink.cpp

  Log Message:
  -----------
  LiveRangeShrink: Early exit when encountering a code motion barrier.

Without this, we end up with quadratic behavior affecting functions with
large numbers of code motion barriers, such as CFI jump tables.

As a drive-by cleanup, remove a redundant store to SawStore in this
pass as it is also done by isSafeToMove.

Reviewers: arsenm

Reviewed By: arsenm

Pull Request: https://github.com/llvm/llvm-project/pull/136806



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