[PATCH] D41350: [DAGCombine] Improve ReduceLoadWidth for SRL

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 18 09:23:57 PST 2017


samparker updated this revision to Diff 127380.
samparker added a comment.

Added some tests to handle non-byte shifts and masks, which highlighted that those cases weren't handled! This fix means that I've reverted one of the x86 test changes too.


https://reviews.llvm.org/D41350

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/ARM/shift-combine.ll
  test/CodeGen/X86/h-registers-1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41350.127380.patch
Type: text/x-patch
Size: 5354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171218/343c27be/attachment.bin>


More information about the llvm-commits mailing list