[all-commits] [llvm/llvm-project] c83374: [DSE] Make iter order deterministic in removeParti...

Björn Pettersson via All-commits all-commits at lists.llvm.org
Wed Feb 19 12:25:11 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c833746c6c062677a040d18d837c7fad71939171
      https://github.com/llvm/llvm-project/commit/c833746c6c062677a040d18d837c7fad71939171
  Author: Björn Pettersson <bjorn.a.pettersson at ericsson.com>
  Date:   2025-02-19 (Wed, 19 Feb 2025)

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

  Log Message:
  -----------
  [DSE] Make iter order deterministic in removePartiallyOverlappedStores. NFC (#127678)

In removePartiallyOverlappedStores we iterate over
InstOverlapIntervalsTy which is a DenseMap. Change that map into using
MapVector to ensure that we apply the transforms in a deterministic
order. I've only seen that the order matters if starting to use names
for the instructions created when doing the transforms. But such things
are a bit annoying when debugging etc.



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