[PATCH] D39595: [CodeGen] Refactor DAG combine ReduceLoadWidth

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 3 06:13:35 PDT 2017


samparker created this revision.

visitAND attempts to narrow the width of extending loads that are then masked off. ReduceLoadWidth already exists for a similar purpose and handles shifts, so I've moved the code to handle AND nodes there. Also simplified the API to isAndLoadExtLoad as the one of its reference argument was only used and calculated internally.


https://reviews.llvm.org/D39595

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39595.121466.patch
Type: text/x-patch
Size: 6201 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171103/5990739e/attachment.bin>


More information about the llvm-commits mailing list