Benjamin Kramer 4969310052 SelectionDAG: Teach FoldConstantArithmetic how to deal with vectors.
This required disabling a PowerPC optimization that did the following:
input:
x = BUILD_VECTOR <i32 16, i32 16, i32 16, i32 16>
lowered to:
tmp = BUILD_VECTOR <i32 8, i32 8, i32 8, i32 8>
x = ADD tmp, tmp

The add now gets folded immediately and we're back at the BUILD_VECTOR we
started from. I don't see a way to fix this currently so I left it disabled
for now.

Fix some trivially foldable X86 tests too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174325 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-04 15:19:18 +00:00
..
2011-05-02 15:58:16 +00:00
2012-12-25 17:22:53 +00:00
2012-10-11 15:38:20 +00:00
2012-12-20 17:47:27 +00:00
2012-08-28 02:10:15 +00:00
2011-05-02 15:58:16 +00:00
2013-01-28 18:36:58 +00:00
2012-08-28 02:10:33 +00:00
2012-10-16 13:30:53 +00:00
2012-06-04 17:36:38 +00:00
2012-12-19 15:49:14 +00:00