This patch teaches fast-isel how to select 128-bit vector load instructions.
I simply extended the switch statement in method 'X86FastEmitLoad' adding extra cases for 128-bit vector types.
I had to slightly modify the signature of 'X86FastEmitLoad' to allow selecting opcodes based on alignment information.
Added test CodeGen/X86/fast-isel-vecload.ll
Please let me know if ok to submit.
Thanks,
Andrea
Instead of passing a bool, I think the actual alignment we saw may be useful.
We could imagine that we generate different instructions based on the value of that alignment.
That being said, this is not the case right now, so we can adjust accordingly later. It just feel weird that the callers know about the required alignments.
What do you think?