summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstSimplify/insertelement.ll
Commit message (Collapse)AuthorAgeFilesLines
* [InstSimplify] guard against unreachable code (PR43218)Sanjay Patel2019-09-041-0/+23
| | | | | | | This would crash: https://bugs.llvm.org/show_bug.cgi?id=43218 llvm-svn: 370911
* [InstSimplify] fold insertelement-of-extractelementSanjay Patel2019-05-241-6/+2
| | | | | | | | This was partly handled in InstCombine (only the constant index case), so delete that and zap it more generally in InstSimplify. llvm-svn: 361576
* [InstSimplify] add tests for insert-of-extract; NFCSanjay Patel2019-05-241-0/+22
| | | | llvm-svn: 361575
* [InstSimplify] insertelement V, undef, ? --> VSanjay Patel2019-05-231-5/+25
| | | | | | | | This was part of InstCombine, but it's better placed in InstSimplify. InstCombine also had an unreachable but weaker fold for insertelement with undef index, so that is deleted. llvm-svn: 361559
* Revert "Temporarily Revert "Add basic loop fusion pass.""Eric Christopher2019-04-171-0/+31
| | | | | | | | The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
* Temporarily Revert "Add basic loop fusion pass."Eric Christopher2019-04-171-31/+0
| | | | | | | | As it's causing some bot failures (and per request from kbarton). This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda. llvm-svn: 358546
* [instsimplify] consistently handle undef and out of bound indices for ↵Philip Reames2017-12-301-0/+6
| | | | | | | | | | insertelement and extractelement In one case, we were handling out of bounds, but not undef indices. In the other, we were handling undef (with the comment making the analogy to out of bounds), but not out of bounds. Be consistent and treat both undef and constant out of bounds indices as producing undefined results. As a side effect, this also protects instcombine from having to handle large constant indices as we always simplify first. llvm-svn: 321575
* Reintroduce r320049, r320014 and r319894.Igor Laevsky2017-12-131-0/+25
| | | | | | OpenGL issues should be fixed by now. llvm-svn: 320568
* Revert r320049, r320014 and r319894Igor Laevsky2017-12-121-25/+0
| | | | | | | They were causing failures of the piglit OpenGL tests with AMD GPUs using the Mesa radeonsi driver. llvm-svn: 320466
* [InstSimplify] Add tests for the rL319894Igor Laevsky2017-12-071-0/+25
Differential Revision: https://reviews.llvm.org/D40650 llvm-svn: 320014
OpenPOWER on IntegriCloud