aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopPeel.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-06-10 09:28:15 +0200
committerGitHub <noreply@github.com>2025-06-10 09:28:15 +0200
commit20e8de9c8f4cf54c6c57535428c987d921861034 (patch)
treed0c3e6caac0cb497b2c96f256e39d114da0ddccb /llvm/lib/Transforms/Utils/LoopPeel.cpp
parentecc8b29eda2acc517170e9dde212986ad677cc68 (diff)
downloadllvm-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