[InstCombine] Remove unused entries in gc-live bundle of statepoint
authorSerguei Katkov <serguei.katkov@azul.com>
Fri, 14 Aug 2020 05:00:09 +0000 (12:00 +0700)
committerSerguei Katkov <serguei.katkov@azul.com>
Fri, 21 Aug 2020 18:36:22 +0000 (01:36 +0700)
commit9e362bb0eb52732cd9224d02bb7ce613bb47c1fc
tree32dbf6e2b9d00e8e8d9c8444cc83a2ead835f997
parentcf6adecd6a8718ee2737ca55e4cd938364b984cc
[InstCombine] Remove unused entries in gc-live bundle of statepoint

If some of gc live value are not used in gc.relocate we can remove them
from gc-live bundle of statepoint instruction.

Also the CL removes duplicated Values in gc-live bundle.

Reviewers: reames, dantrushin
Reviewed By: dantrushin
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D85959
llvm/include/llvm/IR/Instructions.h
llvm/lib/IR/Instructions.cpp
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/statepoint-iter.ll