llvm-project/llvm/test/Transforms/MemCpyOpt
Nikita Popov 90ec6dff86 [OpaquePtr] Forbid mixing typed and opaque pointers
Currently, opaque pointers are supported in two forms: The
-force-opaque-pointers mode, where all pointers are opaque and
typed pointers do not exist. And as a simple ptr type that can
coexist with typed pointers.

This patch removes support for the mixed mode. You either get
typed pointers, or you get opaque pointers, but not both. In the
(current) default mode, using ptr is forbidden. In -opaque-pointers
mode, all pointers are opaque.

The motivation here is that the mixed mode introduces additional
issues that don't exist in fully opaque mode. D105155 is an example
of a design problem. Looking at D109259, it would probably need
additional work to support mixed mode (e.g. to generate GEPs for
typed base but opaque result). Mixed mode will also end up
inserting many casts between i8* and ptr, which would require
significant additional work to consistently avoid.

I don't think the mixed mode is particularly valuable, as it
doesn't align with our end goal. The only thing I've found it to
be moderately useful for is adding some opaque pointer tests in
between typed pointer tests, but I think we can live without that.

Differential Revision: https://reviews.llvm.org/D109290
2021-09-10 15:18:23 +02:00
..
2008-02-24-MultipleUseofSRet.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
2008-03-13-ReturnSlotBitcast.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
2011-06-02-CallSlotOverwritten.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
aa-recursion-assertion-failure.ll
aggregate-type-crash.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
align.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
atomic.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
byval-readnone.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
callslot.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
callslot_aa.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
callslot_badaa.ll
callslot_deref.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
callslot_throw.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
capturing-func.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
crash.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
fca2memcpy.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
form-memset.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
invariant.start.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
lifetime.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
load-store-to-memcpy.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
loadstore-sret.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
memcpy-in-loop.ll [MemorySSA] Don't bail on phi starting access 2021-03-13 10:53:13 +01:00
memcpy-invoke-memcpy.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
memcpy-to-memset-with-lifetimes.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
memcpy-to-memset.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
memcpy-undef.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
memcpy.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
memmove.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
memset-memcpy-oversized.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
memset-memcpy-redundant-memset.ll [OpaquePtr] Forbid mixing typed and opaque pointers 2021-09-10 15:18:23 +02:00
memset-memcpy-to-2x-memset.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
merge-into-memset.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
mixed-sizes.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
no-libcalls.ll [OpaquePtr] Forbid mixing typed and opaque pointers 2021-09-10 15:18:23 +02:00
non-integral.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
nonlocal-memcpy-memcpy.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
nontemporal.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
opaque-ptr.ll [OpaquePtr] Forbid mixing typed and opaque pointers 2021-09-10 15:18:23 +02:00
pr29105.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
pr37967.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
preserve-memssa.ll [MemCpyOpt] Don't generate zero-size memset 2021-03-13 11:41:15 +01:00
process_store.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
profitable-memset.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
smaller.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
sret.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
stackrestore.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
store-to-memset-is-nonzero-type.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
store-to-memset.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
variable-sized-memcpy-memcpy.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
variable-sized-memcpy-uninit.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
variable-sized-memset-memcpy.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00
vscale-crashes.ll [MemCpyOpt] Fix a variety of scalable-type crashes 2021-09-08 11:21:36 +01:00
vscale-memset.ll [MemCpyOpt] Remove MemDepAnalysis-based implementation 2021-08-07 22:35:44 +02:00