diff options
author | Nikita Popov <npopov@redhat.com> | 2022-01-26 15:32:11 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-01-26 15:38:58 +0100 |
commit | 903c3d2863b9d0ae760a2f45e0e934f1d12cd1d4 (patch) | |
tree | 5be359f4b6bd3295f0074b4ea87a380655b75e5d /llvm/unittests/Support/BinaryStreamTest.cpp | |
parent | 2feddb37b48ea55f0d586d2710b9bc17f607e3e1 (diff) | |
download | llvm-903c3d2863b9d0ae760a2f45e0e934f1d12cd1d4.zip llvm-903c3d2863b9d0ae760a2f45e0e934f1d12cd1d4.tar.gz llvm-903c3d2863b9d0ae760a2f45e0e934f1d12cd1d4.tar.bz2 |
[SCEVExpander] Always use i8 GEP for reused value offset
We could keep the non-i8 GEP code for non-opaque pointers, but
there's two reasons I'm dropping it: First, this actually appears
to be dead code, at least it isn't hit in any of our tests. I
expect that this is because we usually expand trip counts, and
those are never pointers (anymore). Second, the non-i8 GEP was
actually incorrect in multiple ways, because it used SCEV type
sizes, which don't match DL type sizes (for pointers) and certainly
don't match type alloc sizes (which is what GEPs actually use).
As such, I'm simplifying the code to always use the i8 GEP code
path if it does get hit.
Diffstat (limited to 'llvm/unittests/Support/BinaryStreamTest.cpp')
0 files changed, 0 insertions, 0 deletions