[all-commits] [llvm/llvm-project] c44d52: [StackColoring] Declare BitVector outside the loop...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sun Jun 16 00:27:43 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c44d52823b4fe8f3aa98fc034f9fcc69b98ef6a0
      https://github.com/llvm/llvm-project/commit/c44d52823b4fe8f3aa98fc034f9fcc69b98ef6a0
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-06-16 (Sun, 16 Jun 2024)

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

  Log Message:
  -----------
  [StackColoring] Declare BitVector outside the loop (#95688)

The StackColoring pass creates two instances of BitVector per basic
block until the fixed point is reached.  Each instance may involve a
heap allocation depending on its size.

This patch declares them outside the loop, saving 1.40% of heap
allocations during the compilation of CGBuiltin.cpp.ii, a preprocessed
version of CGBuiltin.cpp.



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