Lines Matching refs:src

163        *  (since the last two src operands are in different register banks):
167 * (since the last two src operands are in the same register bank):
171 * (since the last two src operands are in different register banks):
176 * (since the last two src operands are in the same register bank):
189 * (since the last two src operands are in different register banks):
193 * (since the last two src operands are in the same register bank):
197 * (since the last two src operands are in different register banks):
202 * (since the last two src operands are in the same register bank):
763 is_src_duplicate(fs_inst *inst, int src)
765 for (int i = 0; i < src; i++)
766 if (inst->src[i].equals(inst->src[src]))
784 if (inst->src[i].file == VGRF) {
785 reads_remaining[inst->src[i].nr]++;
786 } else if (inst->src[i].file == FIXED_GRF) {
787 if (inst->src[i].nr >= hw_reg_count)
791 hw_reads_remaining[inst->src[i].nr + j]++;
870 if (inst->src[i].file == VGRF) {
871 reads_remaining[inst->src[i].nr]--;
872 } else if (inst->src[i].file == FIXED_GRF &&
873 inst->src[i].nr < hw_reg_count) {
875 hw_reads_remaining[inst->src[i].nr + off]--;
896 if (inst->src[i].file == VGRF &&
897 !BITSET_TEST(liveout[block_idx], inst->src[i].nr) &&
898 reads_remaining[inst->src[i].nr] == 1)
899 benefit += v->alloc.sizes[inst->src[i].nr];
901 if (inst->src[i].file == FIXED_GRF &&
902 inst->src[i].nr < hw_reg_count) {
904 int reg = inst->src[i].nr + off;
1170 if (inst->src[i].file == VGRF) {
1173 add_dep(last_grf_write[inst->src[i].nr + r], n);
1176 add_dep(last_grf_write[inst->src[i].nr * 16 +
1177 inst->src[i].offset / REG_SIZE + r], n);
1180 } else if (inst->src[i].file == FIXED_GRF) {
1183 add_dep(last_grf_write[inst->src[i].nr + r], n);
1187 } else if (inst->src[i].is_accumulator()) {
1189 } else if (inst->src[i].file == ARF && !inst->src[i].is_null()) {
1299 if (inst->src[i].file == VGRF) {
1302 add_dep(n, last_grf_write[inst->src[i].nr + r], 0);
1305 add_dep(n, last_grf_write[inst->src[i].nr * 16 +
1306 inst->src[i].offset / REG_SIZE + r], 0);
1309 } else if (inst->src[i].file == FIXED_GRF) {
1312 add_dep(n, last_grf_write[inst->src[i].nr + r], 0);
1316 } else if (inst->src[i].is_accumulator()) {
1318 } else if (inst->src[i].file == ARF && !inst->src[i].is_null()) {
1434 if (inst->src[i].file == VGRF) {
1436 add_dep(last_grf_write[inst->src[i].nr + j], n);
1437 } else if (inst->src[i].file == FIXED_GRF) {
1439 } else if (inst->src[i].is_accumulator()) {
1442 } else if (inst->src[i].file == ARF && !inst->src[i].is_null()) {
1520 if (inst->src[i].file == VGRF) {
1522 add_dep(n, last_grf_write[inst->src[i].nr + j]);
1523 } else if (inst->src[i].file == FIXED_GRF) {
1525 } else if (inst->src[i].is_accumulator()) {
1527 } else if (inst->src[i].file == ARF && !inst->src[i].is_null()) {