[all-commits] [llvm/llvm-project] 1d7d26: [InstCombine] Support ptrtoaddr of gep fold

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Oct 28 04:56:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d7d26cf71506f2506f502222f6b3d8df5daf03d
      https://github.com/llvm/llvm-project/commit/1d7d26cf71506f2506f502222f6b3d8df5daf03d
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-10-28 (Tue, 28 Oct 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
    M llvm/test/Transforms/InstCombine/ptrtoaddr.ll

  Log Message:
  -----------
  [InstCombine] Support ptrtoaddr of gep fold

This fold can be directly reused for ptrtoaddr. One caveat is
that for an inttoptr base, it currently won't work for pointers
with non-address bits. It's possible to support this case.



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