[TwoAddressInstruction] Fix stale LiveVariables info in processStatepoint
authorJay Foad <jay.foad@amd.com>
Fri, 21 Oct 2022 13:08:58 +0000 (14:08 +0100)
committerJay Foad <jay.foad@amd.com>
Fri, 21 Oct 2022 13:57:03 +0000 (14:57 +0100)
commit33f78d0903eb1f7b2a7517218725caee1adfb4a3
treeb9f17b210d97994e251625da24c9a1cb68598413
parent3bee2fb26222b71ba30234586dc0e6c197358091
[TwoAddressInstruction] Fix stale LiveVariables info in processStatepoint

D129213 improves verification of LiveVariables, and caused
CodeGen/X86/statepoint-cmp-sunk-past-statepoint.ll to fail with:
*** Bad machine code: LiveVariables: Block should not be in AliveBlocks ***
after Two-Address instruction pass.

Fix it by clearing AliveBlocks for a register which is no longer used.

Differential Revision: https://reviews.llvm.org/D136445
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp