llvm-6502/lib
Pawel Bylica 59764b94a7 Constfold insertelement to undef when index is out-of-bounds
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235854 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-27 09:30:49 +00:00
..
Analysis
AsmParser
Bitcode
CodeGen Make the message associated with a fatal error slightly more helpful 2015-04-26 22:00:34 +00:00
DebugInfo
ExecutionEngine
Fuzzer
IR Constfold insertelement to undef when index is out-of-bounds 2015-04-27 09:30:49 +00:00
IRReader
LineEditor
Linker Linker: Copy over function metadata attachments 2015-04-24 22:07:31 +00:00
LTO
MC
Object
Option
Passes
ProfileData
Support Assert that Process::FindInEnvPath() is passed a relative path. 2015-04-24 22:18:46 +00:00
TableGen
Target [X86][SSE] Add v16i8/v32i8 multiplication support 2015-04-27 07:55:46 +00:00
Transforms [RewriteStatepointsForGC] Exclude constant values from being considered live at a safepoint 2015-04-26 19:48:03 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile