summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis/ConstantFolding/vectorgep-crash.ll
Commit message (Collapse)AuthorAgeFilesLines
* [ConstantFolding, InstSimplify] Handle more vector GEPsMatthew Simpson2018-03-151-0/+26
| | | | | | | | | | This patch addresses some additional cases where the compiler crashes upon encountering vector GEPs. This should fix PR36116. Differential Revision: https://reviews.llvm.org/D44219 Reference: https://bugs.llvm.org/show_bug.cgi?id=36116 llvm-svn: 327638
* [ConstantFolding] Fix vector GEPs harderMichael Kuperstein2016-12-211-0/+21
| | | | | | | | | | For vector GEPs, CastGEPIndices can end up in an infinite recursion, because we compare the vector type to the scalar pointer type, find them different, and then try to cast a type to itself. Differential Revision: https://reviews.llvm.org/D28009 llvm-svn: 290260
* ConstantFolding: Don't crash when encountering vector GEPKeno Fischer2016-12-081-0/+19
ConstantFolding tried to cast one of the scalar indices to a vector type. Instead, use the vector type only for the first index (which is the only one allowed to be a vector) and use its scalar type otherwise. Fixes PR31250. Reviewers: majnemer Differential Revision: https://reviews.llvm.org/D27389 llvm-svn: 289073
OpenPOWER on IntegriCloud