[all-commits] [llvm/llvm-project] 5b5d91: [GlobalISel] Translate all byte to pointer bitcast...

Pedro Lobo via All-commits all-commits at lists.llvm.org
Fri Sep 25 09:46:52 PDT 2026


  Branch: refs/heads/users/pedroclobo/globalisel-byte-ptr-bitcast
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b5d91c9610a3131e67c284e518cfdbda7ffde32
      https://github.com/llvm/llvm-project/commit/5b5d91c9610a3131e67c284e518cfdbda7ffde32
  Author: Pedro Lobo <pedro.lobo at tecnico.ulisboa.pt>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M llvm/docs/GlobalISel/IRTranslator.md
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/test/CodeGen/Generic/GlobalISel/irtranslator-byte-type.ll

  Log Message:
  -----------
  [GlobalISel] Translate all byte to pointer bitcasts to `G_INTTOPTR`/`G_PTRTOINT`


  Commit: c5e136a0c9fdb5ba5ff328d8ab2b33907144f234
      https://github.com/llvm/llvm-project/commit/c5e136a0c9fdb5ba5ff328d8ab2b33907144f234
  Author: Pedro Lobo <pedro.lobo at tecnico.ulisboa.pt>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M llvm/lib/IR/IRBuilder.cpp
    R llvm/test/CodeGen/AMDGPU/promote-alloca-byte-ptr-cast.ll
    M llvm/unittests/IR/IRBuilderTest.cpp

  Log Message:
  -----------
  Revert "[IRBuilder] Handle byte types in CreateBitPreservingCastChain (#209557)"

This reverts commit 65e2a60f238e1792487a94232f6dfe2e63c4ea9f.

Byte <-> pointer bitcasts are valid IR and preserve provenance, which the
inttoptr/ptrtoint round trip drops. The MachineVerifier failure it worked
around is fixed in the IRTranslator by the previous commit.


Compare: https://github.com/llvm/llvm-project/compare/15bbe9322bc1...c5e136a0c9fd

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