Jingyue Wu
33bd53df7f
[InstCombine] mark ADD with nuw if no unsigned overflow
...
Summary:
As a starting step, we only use one simple heuristic: if the sign bits
of both a and b are zero, we can prove "add a, b" do not unsigned
overflow, and thus convert it to "add nuw a, b".
Updated all affected tests and added two new tests (@zero_sign_bit and
@zero_sign_bit2) in AddOverflow.ll
Test Plan: make check-all
Reviewers: eliben, rafael, meheff, chandlerc
Reviewed By: chandlerc
Subscribers: chandlerc, llvm-commits
Differential Revision: http://reviews.llvm.org/D4144
llvm-svn: 211084
2014-06-17 00:42:07 +00:00
..
2013-08-16 00:37:11 +00:00
2014-04-17 22:33:50 +00:00
2014-04-30 17:22:00 +00:00
2014-06-13 16:45:52 +00:00
2014-06-09 22:42:55 +00:00
2014-02-13 14:44:26 +00:00
2013-08-16 00:37:11 +00:00
2014-06-09 22:42:55 +00:00
2014-06-10 00:32:29 +00:00
2014-03-13 23:18:37 +00:00
2014-05-15 09:56:28 +00:00
2013-08-16 00:37:11 +00:00
2014-03-09 06:41:58 +00:00
2014-01-28 02:38:36 +00:00
2013-09-27 22:26:25 +00:00
2013-08-16 00:37:11 +00:00
2014-05-30 02:31:27 +00:00
2014-06-05 04:31:43 +00:00
2014-06-03 02:41:57 +00:00
2014-06-03 02:41:57 +00:00
2014-06-12 21:16:19 +00:00
2014-05-23 00:06:56 +00:00
2014-05-22 14:19:46 +00:00
2014-06-17 00:42:07 +00:00
2014-05-20 05:13:21 +00:00
2014-05-16 19:35:39 +00:00
2014-05-27 22:03:28 +00:00
2014-05-27 22:03:28 +00:00
2013-08-16 00:37:11 +00:00
2014-02-11 12:52:27 +00:00
2014-05-29 01:55:07 +00:00
2013-08-16 00:37:11 +00:00
2014-06-09 22:42:55 +00:00
2014-01-03 17:20:01 +00:00
2014-01-29 13:16:53 +00:00
2014-05-27 22:03:28 +00:00
2014-06-09 22:42:55 +00:00
2014-06-16 23:53:02 +00:00
2013-08-16 00:37:11 +00:00
2014-06-09 22:42:55 +00:00
2014-06-13 14:24:07 +00:00
2014-02-02 22:43:55 +00:00
2014-03-20 19:54:47 +00:00
2014-06-16 16:55:20 +00:00
2013-11-22 21:49:45 +00:00
2014-03-26 23:45:15 +00:00
2014-06-09 19:03:02 +00:00
2014-03-12 20:15:49 +00:00
2014-03-18 22:32:43 +00:00
2013-08-16 00:37:11 +00:00
2013-08-16 00:37:11 +00:00
2014-06-11 18:28:45 +00:00
2013-08-16 00:37:11 +00:00
2014-03-18 12:03:12 +00:00
2013-12-23 14:51:56 +00:00
2014-03-13 04:50:29 +00:00
2014-06-13 14:54:09 +00:00
2014-06-09 22:42:55 +00:00
2014-06-09 22:42:55 +00:00
2014-03-21 15:51:51 +00:00
2014-06-09 22:42:55 +00:00
2014-06-17 00:19:35 +00:00
2014-02-27 01:24:56 +00:00
2013-11-22 19:24:39 +00:00
2014-05-05 23:59:03 +00:00
2014-06-09 22:42:55 +00:00