TRUNCATE constant folding - minor fix for rL233224
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Apr 2015 08:21:09 +0000 (08:21 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 16 Apr 2015 08:21:09 +0000 (08:21 +0000)
Fix for test case found by James Molloy - TRUNCATE of constant build vectors can be more simply achieved by simply replacing with a new build vector node with the truncated value type - no need to touch the scalar operands at all.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235079 91177308-0d34-0410-b5e6-96231b3b80d8


No differences found