Adjust memory_move_cost for MASK_REGS when MODE_SIZE > 8.

It's impossible to put modes whose size > 8 into MASK_REGS.

gcc/ChangeLog:

	* config/i386/i386.cc (inline_memory_move_cost): Return 100
	for MASK_REGS when MODE_SIZE > 8.
This commit is contained in:
liuhongt 2023-02-08 11:03:14 +08:00
parent 65dd42d2c3
commit 5de5e977aa

View File

@ -19847,9 +19847,12 @@ inline_memory_move_cost (machine_mode mode, enum reg_class regclass, int in)
index = 1;
break;
/* DImode loads and stores assumed to cost the same as SImode. */
default:
case 4:
case 8:
index = 2;
break;
default:
return 100;
}
if (in == 2)