[all-commits] [llvm/llvm-project] c45f93: [InstCombine] Generalize ptrtoint(gep) fold (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jul 12 07:34:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c45f939e34dafaf0f57fd1d93df7df5cc89f1dec
      https://github.com/llvm/llvm-project/commit/c45f939e34dafaf0f57fd1d93df7df5cc89f1dec
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-07-12 (Fri, 12 Jul 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp

  Log Message:
  -----------
  [InstCombine] Generalize ptrtoint(gep) fold (NFC)

We're currently handling a special case of
ptrtoint gep -> add ptrtoint. Reframe the code to make it easier
to add more patterns for this transform.



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