Add support for the case where we have a consecutive load (which must include the first + last elements) with a mixture of undef/zero elements. We load the vector and then apply a shuffle to clear the zero'd elements.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM. See inline for a couple of code comment additions.
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
5589 | Update comment to say something like: "If we have zero elts, we'll shuffle those with the vector load." ? | |
5647 | Could use a comment here to explain what's going on. Something like: "Generate a mask for a shufflevector of the vector load and a zero vector." |
Update comment to say something like: "If we have zero elts, we'll shuffle those with the vector load." ?