Silviu Baranga df9ce8408a [DAGCombine] Truncate BUILD_VECTOR operators if necessary when constant folding vectors
Summary:
The BUILD_VECTOR node will truncate its operators to match the
type. We need to take this into account when constant folding -
we need to perform a truncation before constant folding the elements.
This is because the upper bits can change the result, depending on
the operation type (for example this is the case for min/max).

This change also adds a regression test.

Reviewers: jmolloy

Subscribers: jmolloy, llvm-commits

Differential Revision: http://reviews.llvm.org/D12697

llvm-svn: 247265
2015-09-10 10:34:34 +00:00
..
2015-09-04 01:39:24 +00:00
2015-02-13 10:48:30 +00:00
2015-08-21 00:23:19 +00:00
2015-07-07 23:13:18 +00:00
2015-08-19 01:44:51 +00:00
2015-08-11 14:35:29 +00:00
2014-08-20 10:40:20 +00:00