[all-commits] [llvm/llvm-project] ded546: [InferAddressSpaces] Insert fixup casts before clo...

Antonio Frighetto via All-commits all-commits at lists.llvm.org
Tue Sep 29 23:49:40 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ded546ad82656ce6605ee2f2aa60c78dec70d95f
      https://github.com/llvm/llvm-project/commit/ded546ad82656ce6605ee2f2aa60c78dec70d95f
  Author: Antonio Frighetto <me at antoniofrighetto.com>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
    M llvm/test/Transforms/InferAddressSpaces/NVPTX/address-space-join.ll

  Log Message:
  -----------
  [InferAddressSpaces] Insert fixup casts before cloned user during rewriting phase (#226987)

After reworking `operandWithNewAddressSpaceOrCreatePoison` in #225161 in
order to handle joins of different address spaces in the lattice to a
more specific address space, ensure that casts created during the fix-up
phase of poison uses are placed before the cloned user, as the latter
has already been inserted above the original instruction in
`cloneValueWithNewAddressSpace`.



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