[DAG] Teach DAG to also reassociate vector operations
authorJuergen Ributzka <juergen@apple.com>
Mon, 13 Jan 2014 20:51:35 +0000 (20:51 +0000)
committerJuergen Ributzka <juergen@apple.com>
Mon, 13 Jan 2014 20:51:35 +0000 (20:51 +0000)
commit298d1a6b210a07108a322e91c50a0abf2a292f25
tree7ec087502d571e955391179f8b64bbdaa62d2e59
parentde0847d6a5785ca3dd52798ce2341ca94928a1c7
[DAG] Teach DAG to also reassociate vector operations

This commit teaches DAG to reassociate vector ops, which in turn enables
constant folding of vector op chains that appear later on during custom lowering
and DAG combine.

Reviewed by Andrea Di Biagio

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199135 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/X86/vector-gep.ll