[PATCH] D117406: [DAGCombiner] Adjust some checks in DAGCombiner::reduceLoadWidth

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 18 02:03:47 PST 2022


bjope updated this revision to Diff 400773.
bjope added a comment.
Herald added a subscriber: pengfei.

Rebased (now including the BSWAP fold from D117508 <https://reviews.llvm.org/D117508> to avoid regression in a PPC test case).

Also added a new X86 test as a regression test for new fold when the shift
count isn't a multiple of the narrowed load width.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117406/new/

https://reviews.llvm.org/D117406

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/ARM/shift-combine.ll
  llvm/test/CodeGen/X86/combine-srl-load.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117406.400773.patch
Type: text/x-patch
Size: 4803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220118/66df7705/attachment.bin>


More information about the llvm-commits mailing list