Sanjay Patel 38d30e5d19 [InstCombine] fold X urem C -> X < C ? X : X - C when C is big (PR28672)
We already have the udiv variant of this transform, so I think this is ok for 
InstCombine too even though there is an increase in IR instructions. As the 
tests and TODO comments show, the transform can lead to follow-on combines.

This should fix: https://llvm.org/bugs/show_bug.cgi?id=28672

Differential Revision: https://reviews.llvm.org/D24527


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282209 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-22 22:36:26 +00:00
..
2016-09-13 12:10:14 +00:00
2013-08-28 23:04:41 +00:00
2012-02-29 01:53:13 +00:00
2014-06-02 21:23:54 +00:00
2016-04-05 17:24:54 +00:00
2016-05-06 22:17:01 +00:00
2016-09-12 00:08:33 +00:00
2016-07-16 16:24:06 +00:00
2014-03-06 05:32:52 +00:00
2016-05-02 15:06:55 +00:00
2016-06-05 17:29:45 +00:00
2014-11-04 05:17:58 +00:00
2016-05-02 15:21:41 +00:00
2014-10-21 23:00:20 +00:00
2016-04-17 04:30:43 +00:00
2016-05-02 15:25:49 +00:00
2015-01-06 23:00:33 +00:00
2016-04-05 17:24:54 +00:00
2015-09-08 17:58:22 +00:00
2016-06-25 17:39:10 +00:00
2015-06-05 18:04:42 +00:00
2015-08-11 21:33:55 +00:00
2015-08-28 19:09:31 +00:00
2016-01-07 19:27:16 +00:00
2016-06-05 17:54:56 +00:00
2016-07-16 16:27:58 +00:00
2016-09-08 21:40:21 +00:00
2013-08-28 23:04:41 +00:00
2013-08-28 23:04:41 +00:00
2013-03-28 19:34:14 +00:00
2016-05-01 20:33:25 +00:00
2016-04-05 17:24:54 +00:00

This directory contains test cases for the instcombine transformation.  The
dated tests are actual bug tests, whereas the named tests are used to test
for features that the this pass should be capable of performing.