[all-commits] [llvm/llvm-project] 3e64db: [ConstantFolding] Support ptrtoaddr in cast folds ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Oct 9 01:22:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e64db583d1120f31a52d87a1d414c41e7e3d5cb
      https://github.com/llvm/llvm-project/commit/3e64db583d1120f31a52d87a1d414c41e7e3d5cb
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-10-09 (Thu, 09 Oct 2025)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/test/Transforms/InstCombine/ptrtoaddr.ll

  Log Message:
  -----------
  [ConstantFolding] Support ptrtoaddr in cast folds (#162480)

We can support the same folds for as for ptrtoint. For the cast pair
fold we just need to use the address type instead. The gep based folds
were already operating on the address (aka index) width anyway.



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