[PATCH] [DAGCombiner] Add a shuffle mask commutation helper function.

Simon Pilgrim llvm-dev at redking.me.uk
Sat Mar 7 13:00:24 PST 2015


Hi andreadb, mkuper, chandlerc,

We have an increasing number of cases where we are creating commuted shuffle masks - all implementing nearly the same code.

This patch adds a static helper function - ShuffleVectorSDNode::commuteMask() and replaces a number of cases to use it. If people know of other cases that could use it as well please comment and I will add them to the patch.

NFCI

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8139

Files:
  include/llvm/CodeGen/SelectionDAGNodes.h
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  lib/Target/X86/X86ISelLowering.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8139.21431.patch
Type: text/x-patch
Size: 4942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150307/e3ee84d5/attachment.bin>


More information about the llvm-commits mailing list