[all-commits] [llvm/llvm-project] 20e8de: [InstCombine] Support nested GEPs in OptimizePoint...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Jun 10 00:28:40 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 20e8de9c8f4cf54c6c57535428c987d921861034
https://github.com/llvm/llvm-project/commit/20e8de9c8f4cf54c6c57535428c987d921861034
Author: Nikita Popov <npopov at redhat.com>
Date: 2025-06-10 (Tue, 10 Jun 2025)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
M llvm/test/Transforms/InstCombine/icmp.ll
M llvm/test/Transforms/InstCombine/sub-gep.ll
Log Message:
-----------
[InstCombine] Support nested GEPs in OptimizePointerDifference (#142958)
Currently OptimizePointerDifference() only handles single GEPs with a
common base, not GEP chains. This patch generalizes the support to
nested GEPs with a common base.
Finding the common base is a bit annoying because we want to stop as
soon as possible and not recurse into common GEP prefixes.
This helps avoids regressions from
https://github.com/llvm/llvm-project/pull/137297.
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