[PATCH] Use broadcasts to optimize overall size when loading constant splat vectors (x86-64 with AVX or AVX2)

Sanjay Patel spatel at rotateright.com
Wed Sep 17 14:30:27 PDT 2014


>>! In D5347#14, @rafael wrote:
> Then yes, the linker will merge them. For ELF the entsize can be any
> value, no sure if linkers actually merge all possible sizes. We could
> do a better job at merging these in the IR, but we don't at the
> moment.

Thanks, Rafael. I'll stick with the assumption that it's still worthwhile to splat for size then, but I'll add a comment to revisit the optimization if we start merging in IR.

http://reviews.llvm.org/D5347






More information about the llvm-commits mailing list