Commit cd4b906e authored by Matt Arsenault's avatar Matt Arsenault Committed by Matt Arsenault
Browse files

RegisterCoalescer: Don't delete IMPLICIT_DEF if it's live into the same block

Live out implicit_defs need to be kept, but the check for this only
checked if the block parent was the same. This doesn't work if the
parent blocks are the same but the value is live. Fixes verifier error
"Instruction ending live segment doesn't read the register", which
would appear at the coalesced non-implicit_def def.

Fixes #38788

https://reviews.llvm.org/D158882
parent de558507
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment