[PATCH] [DAGCombiner] Add a shuffle mask commutation helper function.
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4942 bytes
Desc: not available
More information about the llvm-commits