]> git.ipfire.org Git - thirdparty/gcc.git/commit
Account for vector splat GPR->XMM move cost
authorRichard Biener <rguenther@suse.de>
Tue, 23 May 2023 13:12:33 +0000 (15:12 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 23 May 2023 15:57:33 +0000 (17:57 +0200)
commitf504b70eb0fc1339322960041a85606df4547897
tree08ac86c433b797bd68048835d4b1b56f8c34ea84
parent9d5034aad9868bed45472ef5bfac22dd9ac0e0cb
Account for vector splat GPR->XMM move cost

The following also accounts for a GPR->XMM move cost for splat
operations and properly guards eliding the cost when moving from
memory only for SSE4.1 or HImode or larger operands.  This
doesn't fix the PR fully yet.

PR target/109944
* config/i386/i386.cc (ix86_vector_costs::add_stmt_cost):
For vector construction or splats apply GPR->XMM move
costing.  QImode memory can be handled directly only
with SSE4.1 pinsrb.
gcc/config/i386/i386.cc