diff options
author | Nikita Popov <npopov@redhat.com> | 2025-06-10 09:28:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-10 09:28:15 +0200 |
commit | 20e8de9c8f4cf54c6c57535428c987d921861034 (patch) | |
tree | d0c3e6caac0cb497b2c96f256e39d114da0ddccb /llvm/lib/Transforms/Utils/LoopPeel.cpp | |
parent | ecc8b29eda2acc517170e9dde212986ad677cc68 (diff) | |
download | llvm-20e8de9c8f4cf54c6c57535428c987d921861034.zip llvm-20e8de9c8f4cf54c6c57535428c987d921861034.tar.gz llvm-20e8de9c8f4cf54c6c57535428c987d921861034.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopPeel.cpp')
0 files changed, 0 insertions, 0 deletions