OSDN Git Service

[DAGCombiner] Canonicalize vector constants for ADD/MUL/AND/OR/XOR re-association
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 4 Apr 2015 10:20:31 +0000 (10:20 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 4 Apr 2015 10:20:31 +0000 (10:20 +0000)
commitb8d7733666470b114d80e9cdd1622396badd8c17
tree69cb5fb17bc9185624f733e3cd5e4f396223390a
parent4d1e15c54f82c2bcd377af2b245b1f7a54e34a71
[DAGCombiner] Canonicalize vector constants for ADD/MUL/AND/OR/XOR re-association

Scalar integers are commuted to move constants to the RHS for re-association - this ensures vectors do the same.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234092 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/vec_reassociate.ll