[Mesa-dev] [PATCH] nv50/ir: start LocalCSE with getFirst to merge PHI instructions
Ilia Mirkin
imirkin at alum.mit.edu
Thu Oct 6 23:30:56 UTC 2016
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
On Thu, Oct 6, 2016 at 5:33 PM, Karol Herbst <karolherbst at gmail.com> wrote:
> total instructions in shared programs : 2818606 -> 2818227 (-0.01%)
> total gprs used in shared programs : 379273 -> 379238 (-0.01%)
> total local used in shared programs : 9505 -> 9505 (0.00%)
> total bytes used in shared programs : 25837192 -> 25833736 (-0.01%)
>
> local gpr inst bytes
> helped 0 25 100 100
> hurt 0 0 0 0
>
> Signed-off-by: Karol Herbst <karolherbst at gmail.com>
> ---
> src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
> index 1c71155..168aa05 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
> @@ -3220,7 +3220,7 @@ LocalCSE::visit(BasicBlock *bb)
> for (ir = bb->getFirst(); ir; ir = ir->next)
> ir->serial = serial++;
>
> - for (ir = bb->getEntry(); ir; ir = next) {
> + for (ir = bb->getFirst(); ir; ir = next) {
> int s;
> Value *src = NULL;
>
> --
> 2.10.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list