mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-22 12:00:28 +01:00
nv50/peephole: Disallow combining sub 4-byte ld/st for now
Reviewed-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Pierre Moreau <dev@pmoreau.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10711>
This commit is contained in:
parent
81828284b2
commit
4d892829f3
1 changed files with 6 additions and 0 deletions
|
|
@ -3174,6 +3174,12 @@ MemoryOpt::runOpt(BasicBlock *bb)
|
|||
bool isLoad = true;
|
||||
next = ldst->next;
|
||||
|
||||
// TODO: Handle combining sub 4-bytes loads/stores.
|
||||
if (ldst->op == OP_STORE && typeSizeof(ldst->dType) < 4) {
|
||||
purgeRecords(ldst, ldst->src(0).getFile());
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ldst->op == OP_LOAD || ldst->op == OP_VFETCH) {
|
||||
if (ldst->subOp == NV50_IR_SUBOP_LOAD_LOCKED) {
|
||||
purgeRecords(ldst, ldst->src(0).getFile());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue