[all-commits] [llvm/llvm-project] 57c33a: [MachineSink] Sink into consistent blocks for opts...

Ellis Hoag via All-commits all-commits at lists.llvm.org
Tue Nov 12 09:53:49 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57c33acac8c74eb071ede35d819918d8bd00e45b
      https://github.com/llvm/llvm-project/commit/57c33acac8c74eb071ede35d819918d8bd00e45b
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2024-11-12 (Tue, 12 Nov 2024)

  Changed paths:
    M llvm/lib/CodeGen/MachineSink.cpp
    M llvm/test/CodeGen/X86/sink-blockfreq.ll

  Log Message:
  -----------
  [MachineSink] Sink into consistent blocks for optsize funcs (#115367)

Do not consider profile data when choosing a successor block to sink
into for optsize functions. This should result in more consistent
instruction sequences which will improve outlining and ICF. We've
observed a slight codesize improvement in a large binary. This is
similar reasoning to https://github.com/llvm/llvm-project/pull/114607.

Using profile data to select a block to sink into was original added in
https://github.com/llvm/llvm-project/commit/d04f7596e79d7c5cf7e4249ad62690afaecd01ec.



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