[all-commits] [llvm/llvm-project] c41926: [Serialization] Avoid iterating Dense{Map, Set} to ...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Wed Mar 26 01:02:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c41926013fd8b23c3d1eca51804a2de36c88433a
      https://github.com/llvm/llvm-project/commit/c41926013fd8b23c3d1eca51804a2de36c88433a
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2025-03-26 (Wed, 26 Mar 2025)

  Changed paths:
    M clang/include/clang/Serialization/ASTWriter.h
    M clang/lib/Serialization/ASTWriter.cpp

  Log Message:
  -----------
  [Serialization] Avoid iterating Dense{Map,Set} to break determinism
in ASTWriter

It is bad to iterate Dense{Map,Set} in ASTWriter. Since the order in
Dense{Map, Set} is not stable. It may cause the produced BMI differ
even if we run the compiler twice without modifying any other thing.



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