1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00
Craig Topper 07f86f2ad5 [X86] Don't use PMADDWD for vector add reductions of multiplies if the mul inputs have an additional user.
The pmaddwd inserts a truncate, if that truncate would end up
creating additional instructions instead of making a zext
narrower, then we shouldn't do it.

I've restricted this to only sse4.1 targets since on prior
targets the zext will be done in stages. So the truncate will
probably not create additional instructions. Might need some
more investigation of mul shrinking and the other pmaddwd
transform to be sure this is the right decision.

There might be a slight regression on AVX1 targets due to add
splitting. Hard to say for sure. Maybe we need to look into
using the vector reduction flag to use 2 narrow loads and a
blend instead of extracting and inserting.

llvm-svn: 367198
2019-07-29 01:36:58 +00:00
..
2019-06-27 20:37:12 +00:00
2019-05-06 09:46:50 +00:00
2019-05-06 09:46:50 +00:00
2019-05-06 09:46:50 +00:00
2019-05-06 09:46:50 +00:00
2019-05-06 09:46:50 +00:00
2019-05-06 09:46:50 +00:00
2019-05-06 09:46:50 +00:00
2019-06-07 08:31:35 +00:00
2019-06-25 14:46:52 +00:00
2019-05-06 09:46:50 +00:00
2019-05-06 09:46:50 +00:00
2019-06-17 09:13:29 +00:00
2019-05-06 19:29:24 +00:00
2019-06-17 09:13:29 +00:00
2019-06-18 10:10:53 +00:00
2019-06-18 23:31:10 +00:00