Skip to content
Commit 3dcc0db1 authored by Craig Topper's avatar Craig Topper
Browse files

[X86] Teach combineToExtendBoolVectorInReg to create opportunities for using...

[X86] Teach combineToExtendBoolVectorInReg to create opportunities for using broadcast load instructions.

If we're inserting a scalar that is smaller than the element
size of the final VT, the value of the extra bits doesn't matter.

Previously we any_extended in the scalar domain before inserting.

This patch changes this to use a broadcast of the original
scalar type and then a bitcast to the final type. This might
enable the use of a broadcast load.

This recovers regressions from 07d68c24
and 9fcd212e without relying on
alignment of the load.

Differential Revision: https://reviews.llvm.org/D75835
parent 8fc9eea4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment