[RS4GC] Add a test to demonstrate duplication of base generation. NFC
authorYevgeny Rouban <yrouban@azul.com>
Mon, 12 Jul 2021 10:35:10 +0000 (17:35 +0700)
committerYevgeny Rouban <yrouban@azul.com>
Mon, 12 Jul 2021 11:13:00 +0000 (18:13 +0700)
commita95c336b5e3b72def68f75c67f3e5a134d3029e5
tree2a17ab17029ad49f030169168df6b40753cd6516
parent84e429693fe5f225fe68b9dd54043cddb9c4cd4c
[RS4GC] Add a test to demonstrate duplication of base generation. NFC

This new test demonstrates a case where a base ptr is generated
twice for the same value: the first one is generated while
the gc.get.pointer.base() is inlined, the second is generated
for the statepoint. This happens because the methods
inlineGetBaseAndOffset() and insertParsePoints() do not share
their defining value cache used by the findBasePointer() method.

Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D103238
llvm/test/Transforms/RewriteStatepointsForGC/intrinsics-bare.ll [new file with mode: 0644]