HomePhabricator

[X86] Prefer VPBLENDD for v2i64/v4i64 blends with AVX2.

Authored by craig.topper on Mar 2 2019, 4:18 PM.

Description

[X86] Prefer VPBLENDD for v2i64/v4i64 blends with AVX2.

We were using VPBLENDW for v2i64 and VBLENDPD for v4i64. VPBLENDD has better throughput than VPBLENDW on some CPUs so it makes sense to use it when possible. VBLENDPD will probably become VBLENDD during execution domain fixing, but we might as well use integer in isel while we can.

This should work around some issues with the domain fixing pass prefering PBLENDW when we start with PBLENDW. There may still be some v8i16 cases that could use PBLENDD.

llvm-svn: 355281

Details

Committed
craig.topperMar 2 2019, 4:18 PM
Parents
rGcf03bd92d64a: Tweak r355278 for compatibility with gcc 6 and earlier.
Branches
Unknown
Tags
Unknown