[RS4GC] Prune inputs of BDV if they are BDV themselves
authorDmitry Makogon <d.makogon@g.nsu.ru>
Fri, 15 Apr 2022 07:59:40 +0000 (14:59 +0700)
committerDmitry Makogon <d.makogon@g.nsu.ru>
Tue, 26 Apr 2022 09:05:00 +0000 (16:05 +0700)
commitd03d2d8aeaa3454fa82f5740af27160508f0a2ad
treeb84c93e8f96e21004d412c6bc0b617cc1156e2ff
parent854c33946fd4445a19458c0b12204f125ded7fad
[RS4GC] Prune inputs of BDV if they are BDV themselves

Don't check whether an input of BDV can be pruned if the input
is the BDV itself. BDV is present in the states map, so in case
the input is the BDV itself, we'd return false. So explicitly check this case.

Differential Revision: https://reviews.llvm.org/D123846
llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
llvm/test/Transforms/RewriteStatepointsForGC/base-pointers-14.ll