David Majnemer
cd4fbcd1bb
InstSimplify: Simplify (X - (0 - Y)) if the second sub is NUW
...
If the NUW bit is set for 0 - Y, we know that all values for Y other
than 0 would produce a poison value. This allows us to replace (0 - Y)
with 0 in the expression (X - (0 - Y)) which will ultimately leave us
with X.
This partially fixes PR20189.
llvm-svn: 214384
2014-07-31 04:49:18 +00:00
..
2013-07-14 01:42:54 +00:00
2013-07-14 01:42:54 +00:00
2013-07-14 01:42:54 +00:00
2013-07-14 01:42:54 +00:00
2011-10-27 19:16:21 +00:00
2011-11-23 16:26:47 +00:00
2013-04-19 16:56:24 +00:00
2014-07-31 04:49:18 +00:00
2014-06-19 03:51:46 +00:00
2014-07-17 06:28:15 +00:00
2014-07-25 21:13:35 +00:00
2013-02-08 18:00:14 +00:00
2013-09-24 18:37:49 +00:00
2014-07-18 15:51:28 +00:00
2014-04-26 05:58:11 +00:00
2013-07-14 01:42:54 +00:00
2013-07-14 01:42:54 +00:00
2013-07-14 01:42:54 +00:00
2013-07-14 01:42:54 +00:00
2013-07-14 01:42:54 +00:00
2013-02-01 19:37:52 +00:00
2013-07-14 01:42:54 +00:00
2013-07-14 01:42:54 +00:00
2013-07-14 01:42:54 +00:00
2013-07-14 01:42:54 +00:00
2014-01-24 17:09:53 +00:00
2014-01-24 17:09:53 +00:00