[PATCH] D64551: [X86] EltsFromConsecutiveLoads - support common source loads
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 03:02:52 PDT 2019
RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel, niravd, deadalnix.
Herald added a project: LLVM.
This patch enables us to find the source loads for each element, splitting them into a Load and ByteOffset, and attempts to recognise consecutive loads that are in fact from the same source load.
A helper function, FindEltLoadSrc, recurses through to find a LoadSDNode and determines the element's byte offset within it. When attempting to match consecutive loads, byte offsetted loads then attempt to matched against a previous load that has already been confirmed to be a consecutive match.
Next step towards PR16739 - after this we just need to account for shuffling/repeated elements to create a vector load + shuffle.
Repository:
rL LLVM
https://reviews.llvm.org/D64551
Files:
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/clear_upper_vector_element_bits.ll
test/CodeGen/X86/load-partial.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64551.209154.patch
Type: text/x-patch
Size: 22095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190711/10a65101/attachment.bin>
More information about the llvm-commits
mailing list