[all-commits] [llvm/llvm-project] c58297: [NFC][KeyInstr] Add Atom Group (re)mapping

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Tue May 6 03:52:35 PDT 2025


  Branch: refs/heads/users/OCHyams/ki-llvm-remapping
  Home:   https://github.com/llvm/llvm-project
  Commit: c5829702f686b69f727f1718fcb2524675f4bdbd
      https://github.com/llvm/llvm-project/commit/c5829702f686b69f727f1718fcb2524675f4bdbd
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M llvm/include/llvm/IR/ValueMap.h
    M llvm/include/llvm/Transforms/Utils/Cloning.h
    M llvm/include/llvm/Transforms/Utils/ValueMapper.h
    M llvm/lib/Transforms/Utils/CloneFunction.cpp
    M llvm/lib/Transforms/Utils/ValueMapper.cpp
    M llvm/unittests/Transforms/Utils/CloningTest.cpp

  Log Message:
  -----------
  [NFC][KeyInstr] Add Atom Group (re)mapping

Add:
   mapAtomInstance - map the atom group number to a new group.
   RemapSourceAtom - apply the mapped atom group number to this instruction.

Modify:
  CloneBasicBlock - Call mapAtomInstance on cloned instruction's DebugLocs
                    if MapAtoms is true (default). Setting to false could
		    lead to a degraded debugging experience. See code comment.

Optimisations like loop unroll that duplicate instructions need to remap source
atom groups so that each duplicated source construct instance is considered
distinct when determining is_stmt locations.

This commit adds the remapping functionality and a unittest.


  Commit: 580ad45f0b525c9069a24f0bfd4b9ae15f0bd285
      https://github.com/llvm/llvm-project/commit/580ad45f0b525c9069a24f0bfd4b9ae15f0bd285
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M llvm/include/llvm/IR/ValueMap.h
    M llvm/include/llvm/Transforms/Utils/Cloning.h

  Log Message:
  -----------
  SmallDenseMap and comment


  Commit: 88ee5deba58372edc218e626e9773001bbf844fd
      https://github.com/llvm/llvm-project/commit/88ee5deba58372edc218e626e9773001bbf844fd
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/ValueMapper.h

  Log Message:
  -----------
  another comment


  Commit: 0847aa54164c5b7b37d1dc50c9ef028912b6b64f
      https://github.com/llvm/llvm-project/commit/0847aa54164c5b7b37d1dc50c9ef028912b6b64f
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/ValueMapper.h

  Log Message:
  -----------
  less terse comment


Compare: https://github.com/llvm/llvm-project/compare/71329a0f8ac6...0847aa54164c

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