mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
mesa: add missing size check for assignment optimization
(cherry picked from commit aa40de5c6f)
This commit is contained in:
parent
96cab36e2e
commit
e42ed1ed0b
1 changed files with 2 additions and 1 deletions
|
|
@ -1321,7 +1321,8 @@ emit_copy(slang_emit_info *emitInfo, slang_ir_node *n)
|
|||
_slang_is_temp(emitInfo->vt, n->Children[1]->Store) &&
|
||||
(inst->DstReg.File == n->Children[1]->Store->File) &&
|
||||
(inst->DstReg.Index == n->Children[1]->Store->Index) &&
|
||||
!n->Children[0]->Store->IsIndirect) {
|
||||
!n->Children[0]->Store->IsIndirect &&
|
||||
n->Children[0]->Store->Size <= 4) {
|
||||
/* Peephole optimization:
|
||||
* The Right-Hand-Side has its results in a temporary place.
|
||||
* Modify the RHS (and the prev instruction) to store its results
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue