nv50/ir/opt: Update the symbol size when combining loads and stores.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 17 Nov 2011 17:23:28 +0000 (18:23 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 14 Apr 2012 19:54:02 +0000 (21:54 +0200)
src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp

index 021ee1f22b7a1a17640730bad9eb7ff53e1a7413..c2c33e20bf166f23d2d8e7d7479a2dd1509b7443 100644 (file)
@@ -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;
 }