Pawel Bylica
c25918a043
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
llvm-svn: 235854
2015-04-27 09:30:49 +00:00
..
2015-04-24 22:04:41 +00:00
2015-04-16 20:29:50 +00:00
2015-04-16 20:29:50 +00:00
2015-04-24 21:16:07 +00:00
2015-04-03 01:20:33 +00:00
2015-04-15 03:14:06 +00:00
2015-04-27 09:30:49 +00:00
2015-03-18 00:41:24 +00:00
2015-04-20 19:38:24 +00:00
2015-02-15 22:54:22 +00:00
2015-04-17 15:32:15 +00:00
2015-03-17 23:54:51 +00:00
2015-04-21 20:07:38 +00:00
2015-04-15 22:29:27 +00:00
2015-04-20 22:10:08 +00:00
2015-04-14 01:35:55 +00:00
2015-04-21 20:07:38 +00:00
2015-01-14 10:19:28 +00:00
2015-04-24 21:51:02 +00:00
2015-03-30 15:42:36 +00:00
2015-03-03 22:01:13 +00:00
2015-03-29 20:49:03 +00:00
2015-04-02 00:03:07 +00:00
2015-04-23 21:36:23 +00:00
2014-12-09 18:38:53 +00:00
2015-04-03 21:33:42 +00:00
2015-04-15 02:38:06 +00:00
2015-04-11 02:11:45 +00:00
2014-12-11 02:10:28 +00:00
2015-04-17 15:32:15 +00:00
2015-04-24 21:51:02 +00:00
2015-03-17 20:40:21 +00:00
2015-02-25 05:10:25 +00:00
2015-04-24 21:51:02 +00:00
2015-02-04 00:20:52 +00:00
2015-01-19 19:02:06 +00:00
2015-03-13 21:54:20 +00:00
2015-01-22 21:01:12 +00:00
2015-01-13 22:42:38 +00:00
2015-03-05 17:53:00 +00:00
2015-02-19 11:02:11 +00:00
2015-04-17 15:32:15 +00:00
2015-03-10 23:55:38 +00:00
2014-10-15 20:28:31 +00:00
2015-04-23 17:36:48 +00:00
2014-12-09 18:38:53 +00:00
2015-04-17 16:11:05 +00:00
2015-04-24 21:53:27 +00:00