HomePhabricator

[X86] Add isel patterns for X86VBroadcast with i16 truncates from i16->i64…

Authored by craig.topper on Thu, Mar 12, 11:40 PM.

Description

[X86] Add isel patterns for X86VBroadcast with i16 truncates from i16->i64 zextload/extload.

We can form vpbroadcastw with a folded load.

We had patterns for i16->i32 zextload/extload, but nothing prevents
i64 from occuring.

I'd like to move this all to DAG combine to fix more cases, but
this is trivial fix to minimize test diffs when moving to a combine.

Details

Committed
craig.topperFri, Mar 13, 12:10 AM
Parents
rG51a4c6125ca6: [X86] Add test cases for failures to form vbroadcastw due to…
Branches
Unknown
Tags
Unknown