nak: Only put actually live SSA values in the ra.live_in sets

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
Faith Ekstrand 2023-04-21 21:23:34 -05:00 committed by Marge Bot
parent 49f8fb0c03
commit 854b4c0817

View file

@ -866,10 +866,12 @@ impl AssignRegsBlock {
*/
for raf in &self.ra.files {
for (ssa, reg) in &raf.ssa_reg {
self.live_in.push(LiveValue {
live_ref: LiveRef::SSA(*ssa),
reg_ref: RegRef::new(raf.file(), *reg, 1),
});
if bl.is_live_in(ssa) {
self.live_in.push(LiveValue {
live_ref: LiveRef::SSA(*ssa),
reg_ref: RegRef::new(raf.file(), *reg, 1),
});
}
}
}