[all-commits] [llvm/llvm-project] 690aac: [GVN] Reuse dominating PtrToInt for PtrToAddr. (#2...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Jul 13 10:20:47 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 690aacbf9d15569ec26843d6367f5cf6d5b26969
      https://github.com/llvm/llvm-project/commit/690aacbf9d15569ec26843d6367f5cf6d5b26969
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/GVN.h
    M llvm/lib/Transforms/Scalar/GVN.cpp
    M llvm/test/Transforms/GVN/ptrtoaddr.ll

  Log Message:
  -----------
  [GVN] Reuse dominating PtrToInt for PtrToAddr. (#209164)

A ptrtoaddr and a ptrtoint of the same pointer compute the same value
when the address width equals the pointer representation width. Reuse
a dominating ptrtoint in place of a ptrtoaddr.

This fixes a few end-to-end regressions with
https://github.com/llvm/llvm-project/pull/180244.

PR: https://github.com/llvm/llvm-project/pull/209164



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