[all-commits] [llvm/llvm-project] 095bf6: [Greedy RegAlloc] Fix the handling of split regist...
serguei-katkov via All-commits
all-commits at lists.llvm.org
Mon Jun 13 22:05:34 PDT 2022
Author: Serguei Katkov <serguei.katkov at azul.com>
Date: 2022-06-14 (Tue, 14 Jun 2022)
[Greedy RegAlloc] Fix the handling of split register in last chance re-coloring.
This is a fix for https://github.com/llvm/llvm-project/issues/55827.
When register we are trying to re-color is split the original register (we tried to recover)
has no uses after the split. However in rollback actions we assign back physical register to it.
Later it causes different assertions. One of them is in attached test.
This CL fixes this by avoiding assigning physical register back to register which has no usage
or its live interval now is empty.
Reviewed By: arsenm, qcolombet
Differential Revision: https://reviews.llvm.org/D127281
More information about the All-commits