[DAG] Refactor the shuffle combining logic in DAGCombiner. NFC.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 21 Nov 2014 11:33:07 +0000 (11:33 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 21 Nov 2014 11:33:07 +0000 (11:33 +0000)
commit26e8f4d166295286396d76d5432c33ca1d25080b
tree6333a56398def664794f60604b588bcd1798e409
parentfd1731d8765002abafcc97c358e6fcefa047285d
[DAG] Refactor the shuffle combining logic in DAGCombiner. NFC.

This patch simplifies the logic that combines a pair of shuffle nodes into
a single shuffle if there is a legal mask. Also added comments to better
describe the algorithm. No functional change intended.

llvm-svn: 222522
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp