[PATCH] D40034: [DAGCombine] Enable more srl + load combines
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 09:19:28 PST 2017
samparker created this revision.
Herald added a subscriber: javed.absar.
Change the calculation for the desired ValueType for non-sign extending loads, as in those cases we don't care about the higher bits. This creates a smaller ExtVT and allows for such combinations as:
(srl (zextload i16, [addr]), 8) -> (zextload i8, [addr + 1])
https://reviews.llvm.org/D40034
Files:
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/ARM/shift-combine.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40034.122856.patch
Type: text/x-patch
Size: 6311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171114/1add2280/attachment.bin>
More information about the llvm-commits
mailing list