[StatepointLowering] Handle UNDEF gc values.
authorDenis Antrushin <dantrushin@gmail.com>
Thu, 28 May 2020 12:26:56 +0000 (15:26 +0300)
committerDenis Antrushin <dantrushin@gmail.com>
Tue, 2 Jun 2020 07:18:33 +0000 (10:18 +0300)
commitfa818ded24413c8b9722dd564b04d9ffc50743b5
treea7b7b21d9f6040488ef156935289414489dd70a8
parent052c962ced71c5130d709186b78c37a4adc59d66
[StatepointLowering] Handle UNDEF gc values.

Do not spill UNDEF GC values. Instead, replace corresponding
gc.relocate intrinsic with an (arbitrary, but recognizable) constant.

Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D80714
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
llvm/test/CodeGen/X86/statepoint-uniqueing.ll