Message ID | 20210113005852.114459-4-julian@codesourcery.com |
---|---|
State | New |
Headers | show |
Series | amdgcn: Remove dead code for fixed v0 register | expand |
diff --git a/gcc/config/gcn/gcn.c b/gcc/config/gcn/gcn.c index 630ce4eebc7..b08f4b32c9c 100644 --- a/gcc/config/gcn/gcn.c +++ b/gcc/config/gcn/gcn.c @@ -2137,10 +2137,6 @@ gcn_conditional_register_usage (void) fixed_regs[cfun->machine->args.reg[WORK_ITEM_ID_Y_ARG]] = 1; if (cfun->machine->args.reg[WORK_ITEM_ID_Z_ARG] >= 0) fixed_regs[cfun->machine->args.reg[WORK_ITEM_ID_Z_ARG]] = 1; - - if (TARGET_GCN5_PLUS) - /* v0 is always zero, for global nul-offsets. */ - fixed_regs[VGPR_REGNO (0)] = 1; } /* Determine if a load or store is valid, according to the register classes