[all-commits] [llvm/llvm-project] bcc393: [llvm][GVNSink] Avoid non-determistic iteration or...

Paul Kirth via All-commits all-commits at lists.llvm.org
Fri Jun 26 08:32:58 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bcc3939eb9b7448d0c7db119cbdf4b71b562145b
      https://github.com/llvm/llvm-project/commit/bcc3939eb9b7448d0c7db119cbdf4b71b562145b
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/GVNSink.cpp

  Log Message:
  -----------
  [llvm][GVNSink] Avoid non-determistic iteration order over NeededPHIs (#205952)

The iteration order of DenseSet is not guaranteed, which affects the
output of code generated with GVNSink enabled. This can cause code to be
emitted in differing order, affect section ordering, and in some cases
was reported to result in larger binaries due to increased padding between
sections.

This patch addresses this by using SetVector, which has a deterministic
iteration order.



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