[PATCH] D50432: [DAGCombiner] Reduce load widths of shifted masks
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 8 03:43:38 PDT 2018
samparker created this revision.
samparker added reviewers: spatel, RKSimon, niravd, efriedma.
Herald added a reviewer: javed.absar.
During combining, ReduceLoadWdith is used to combine AND nodes that mask loads into narrow loads. This patch allows the mask to be a shifted constant. This results in a narrow load which is then left shifted to compensate for the new offset.
https://reviews.llvm.org/D50432
Files:
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/ARM/and-load-combine.ll
test/CodeGen/X86/fp128-i128.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50432.159674.patch
Type: text/x-patch
Size: 23012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180808/022eddda/attachment-0001.bin>
More information about the llvm-commits
mailing list