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:
Pierre Moreau 2021-04-12 09:26:03 +02:00 committed by Marge Bot
parent 81828284b2
commit 4d892829f3

View file

@ -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());