[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)
commit3d1975d44b9d3e56aea5a73f495d7fbbd56c663f
treeb92516a9f5ad050dc5dfa95fabe8528e5feae8c1
parent10437f66fac8ac84bc8a80b8beb5d1c17a20e654
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213503 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/X86/X86ISelLowering.cpp