[all-commits] [llvm/llvm-project] 69f2de: [InstCombine] Add test for inttoptr of ptrtoaddr (...

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


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

  Changed paths:
    M llvm/test/Transforms/InstCombine/ptrtoaddr.ll

  Log Message:
  -----------
  [InstCombine] Add test for inttoptr of ptrtoaddr (NFC)

And document that we're intentionally not folding this case.
For inttoptr of ptrtoint this is controlled by the
-disable-i2p-p2i-opt flag, but I don't think there is a need to
replicate this known unsound fold for ptrtoaddr, given their
different usage characteristics.



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