mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 03:50:13 +01:00
nv50/ir/opt: Update the symbol size when combining loads and stores.
This commit is contained in:
parent
5df92c81c3
commit
90f0fac655
1 changed files with 2 additions and 0 deletions
|
|
@ -1275,6 +1275,7 @@ MemoryOpt::combineLd(Record *rec, Instruction *ld)
|
|||
}
|
||||
|
||||
rec->size = size;
|
||||
rec->insn->getSrc(0)->reg.size = size;
|
||||
rec->insn->setType(typeOfSize(size));
|
||||
|
||||
delete_Instruction(prog, ld);
|
||||
|
|
@ -1333,6 +1334,7 @@ MemoryOpt::combineSt(Record *rec, Instruction *st)
|
|||
delete_Instruction(prog, rec->insn);
|
||||
rec->insn = st;
|
||||
rec->size = size;
|
||||
rec->insn->getSrc(0)->reg.size = size;
|
||||
rec->insn->setType(typeOfSize(size));
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue