[all-commits] [llvm/llvm-project] 6c1fc8: [InstCombine] fold `sub(zext(ptrtoint), zext(ptrtoi...

Nikolay Panchenko via All-commits all-commits at lists.llvm.org
Fri Nov 15 06:36:57 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c1fc8213ee40896681ed84a3f91b1b5b56a4de8
      https://github.com/llvm/llvm-project/commit/6c1fc8213ee40896681ed84a3f91b1b5b56a4de8
  Author: Nikolay Panchenko <npanchen at modular.com>
  Date:   2024-11-15 (Fri, 15 Nov 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/sub-gep.ll

  Log Message:
  -----------
  [InstCombine] fold `sub(zext(ptrtoint),zext(ptrtoint))` (#115369)

On a 32-bit target if pointer arithmetic with `addrspace` is used in i64
computation, the missed folding in InstCombine results to suboptimal
performance, unlike same code compiled for 64bit target.



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