summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/ConstProp/InsertElement.ll
Commit message (Collapse)AuthorAgeFilesLines
* Constfold insertelement to undef when index is out-of-boundsPawel Bylica2015-04-271-1/+21
| | | | | | | | | | | | | | | | | | | Summary: This patch adds constant folding of insertelement instruction to undef value when index operand is constant and is not less than vector size or is undef. InstCombine does not support this case, but I'm happy to add it there also if this change is accepted. Test Plan: Unittests and regression tests for ConstProp pass. Reviewers: majnemer Reviewed By: majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9287 llvm-svn: 235854
* Avoid conversion to float when creating ConstantDataArray/ConstantDataVector.Rafael Espindola2015-02-191-0/+12
Patch by Raoux, Thomas F! llvm-svn: 229864
OpenPOWER on IntegriCloud