diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2024-05-15 07:02:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-15 07:02:31 +0200 |
| commit | 847c83f7cceeaec6676f33291081912d6b8fda5e (patch) | |
| tree | 5eac447d6f89cf5e7e3bc4a08e90b01fdcfab8a2 /llvm/lib/TextAPI/Utils.cpp | |
| parent | 74d91d9acebdbc81306c8a0ee547002e7e8084f9 (diff) | |
| download | llvm-847c83f7cceeaec6676f33291081912d6b8fda5e.zip llvm-847c83f7cceeaec6676f33291081912d6b8fda5e.tar.gz llvm-847c83f7cceeaec6676f33291081912d6b8fda5e.tar.bz2 | |
InstCombine: Process addrspacecast uses in PointerReplacer (#91953)
This was looking through an addrspacecast, and not finding a later
unfoldable cast to another address space. Fixes improperly deleting
a required alloca + memcpy and introducing an illegal addrspacecast.
This also required fixing some worklist management issues with
addrspacecast, and assuming that only memcpy sources could need
replacement.
Regresses one test function, but this looks like it optimized
before by accident. It never saw the pointer use by the call
to readonly_callee, which should require insertion of a new cast.
Fixes #68120
Diffstat (limited to 'llvm/lib/TextAPI/Utils.cpp')
0 files changed, 0 insertions, 0 deletions
