[all-commits] [llvm/llvm-project] b8b749: [InstCombine] Rewrite multi-use GEPs when simplify...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jul 1 05:27:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b8b74945514358f1ebeac0874172f37fc7bfa38e
      https://github.com/llvm/llvm-project/commit/b8b74945514358f1ebeac0874172f37fc7bfa38e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-07-01 (Tue, 01 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/icmp-gep.ll
    M llvm/test/Transforms/PhaseOrdering/loop-access-checks.ll

  Log Message:
  -----------
  [InstCombine] Rewrite multi-use GEPs when simplifying comparison (#146100)

We already do this when both sides are a GEP, but not if only one is.
This ensures that the offset arithmetic is not duplicated.



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