[DAG] Refactor some logic. No functional change.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Mon, 21 Jul 2014 07:28:51 +0000 (07:28 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Mon, 21 Jul 2014 07:28:51 +0000 (07:28 +0000)
commit4d8bd41600e4a6ddc9a6d644828c370b0656c0dd
tree16b964f51052941a842559f4ee6f586a9de20c01
parent1810fc93b7dbd3f032fc373d5b97fda5284be0b1
[DAG] Refactor some logic. No functional change.

This patch removes function 'CommuteVectorShuffle' from X86ISelLowering.cpp
and moves its logic into SelectionDAG.cpp as method 'getCommutedVectorShuffles'.
This refactoring is in preperation of an upcoming change to the DAGCombiner.

llvm-svn: 213503
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp