diff options
author | Nikita Popov <npopov@redhat.com> | 2023-11-28 09:16:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 09:16:04 +0100 |
commit | d01237c45b7cdbf83d1249dd019178b2cafbb63c (patch) | |
tree | ed2d135f6236715acdfcbaead84a46152b01166e /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | aefca74d44667749e6f513fbe1908de1429e9226 (diff) | |
download | llvm-d01237c45b7cdbf83d1249dd019178b2cafbb63c.zip llvm-d01237c45b7cdbf83d1249dd019178b2cafbb63c.tar.gz llvm-d01237c45b7cdbf83d1249dd019178b2cafbb63c.tar.bz2 |
[InstCombine] Make indexed compare fold GEP source type independent (#71663)
The indexed compare fold converts comparisons of GEPs with same
(indirect) base into comparisons of offset. Currently, it only supports
GEPs with the same source element type.
This change makes the transform operate on offsets instead, which
removes the type dependence. To keep closer to the scope of the original
implementation, this keeps the limitation that we should only have at
most one variable index per GEP.
This addresses the main regression from
https://github.com/llvm/llvm-project/pull/68882.
TBH I have some doubts that this is really a useful transform (at least
for the case where there are extra pointer users, so we have to
rematerialize pointers at some point). I can only assume it exists for a
reason...
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions