[all-commits] [llvm/llvm-project] 0c7bd8: [IPO] Avoid repeated hash lookups (NFC) (#125639)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Tue Feb 4 09:11:01 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c7bd879d28a37e215c0cf02b383e224bc9f2ebf
      https://github.com/llvm/llvm-project/commit/0c7bd879d28a37e215c0cf02b383e224bc9f2ebf
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-02-04 (Tue, 04 Feb 2025)

  Changed paths:
    M llvm/lib/Transforms/IPO/IROutliner.cpp

  Log Message:
  -----------
  [IPO] Avoid repeated hash lookups (NFC) (#125639)

The two "if" conditions are mutually exclusive, so we can put them in
any order.  Reversing the order allows us to remove
Blocks.contains(IncomingBlock) in one of the "if" conditions.



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