[GVNSink] Convert tests to opaque pointers (NFC)
authorNikita Popov <npopov@redhat.com>
Tue, 10 Jan 2023 11:45:06 +0000 (12:45 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 10 Jan 2023 11:46:53 +0000 (12:46 +0100)
commit482898d9e21995d445745c3157ad95410ae32ee2
tree70740ce4b0c7f4e7a380e302830edf04cf624898
parent88b3127ed1faade1d51770e65e554d1273ed1039
[GVNSink] Convert tests to opaque pointers (NFC)

Keeping bitcasts in the common_bitcast() test, otherwise sinking
no longer occurs there. GVNSink seems to have a silly cost model
where sinking just the stores is considered non-profitable, but
sinking the stores and bitcasts (which are free...) is profitable.

As this is not a default-enabled pass, and this problem would exist
without opaque pointers as well, I'm not trying to do anything
about this.
llvm/test/Transforms/GVNSink/sink-common-code.ll
llvm/test/Transforms/GVNSink/struct.ll