llvm-6502/test/Transforms/InstSimplify
David Majnemer 6de0a12927 IR: Properly return nullptr when getAggregateElement is out-of-bounds
We didn't properly handle the out-of-bounds case for
ConstantAggregateZero and UndefValue.  This would manifest as a crash
when the constant folder was asked to fold a load of a constant global
whose struct type has no operands.

This fixes PR22595.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229352 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-16 04:02:09 +00:00
..
2010-12-20-Boolean.ll
2011-01-14-Thread.ll
2011-02-01-Vector.ll
2011-09-05-InsertExtractValue.ll
2011-10-27-BinOpCrash.ll
2011-11-23-MaskedBitsCrash.ll
2013-04-19-ConstantFoldingCrash.ll
AndOrXor.ll InstSimplify: Try to bring back the rest of r223583 2014-12-08 18:30:43 +00:00
apint-or.ll
assume.ll
call-callconv.ll
call.ll
compare.ll
dead-code-removal.ll
exact-nsw-nuw.ll
fast-math.ll
fdiv.ll
floating-point-arithmetic.ll
floating-point-compare.ll Fold fcmp in cases where value is provably non-negative. By Arch Robison. 2015-01-28 08:03:58 +00:00
fold-builtin-fma.ll
gep.ll
load.ll IR: Properly return nullptr when getAggregateElement is out-of-bounds 2015-02-16 04:02:09 +00:00
maxmin.ll
noalias-ptr.ll
past-the-end.ll
phi.ll
ptr_diff.ll
reassociate.ll
rem.ll
select.ll InstSimplify: Optimize away pointless comparisons 2014-12-20 03:04:38 +00:00
shr-nop.ll
undef.ll ConstantFold: Shifting undef by zero results in undef 2014-12-18 23:54:43 +00:00
vector_gep.ll
vector_ptr_bitcast.ll