Richard Sandiford 2984497cc1 Match the InstCombine form of rotates by X+C
InstCombine converts (sub 32, (add X, C)) into (sub 32-C, X),
so a rotate left of a 32-bit Y by X+C could appear as either:

   (or (shl Y, (add X, C)), (shr Y, (sub 32, (add X, C))))

without InstCombine or:

   (or (shl Y, (add X, C)), (shr Y, (sub 32-C, X)))

with it.

We already matched the first form.  This patch handles the second too.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198860 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-09 10:49:40 +00:00
..
2013-10-28 13:53:37 +00:00
2013-07-19 16:21:55 +00:00
2013-07-19 16:24:22 +00:00
2013-07-19 16:24:22 +00:00
2013-09-16 09:03:10 +00:00
2013-10-28 13:53:37 +00:00
2013-12-11 11:37:27 +00:00
2013-10-28 13:53:37 +00:00
2013-10-28 13:53:37 +00:00
2013-07-19 16:32:12 +00:00
2013-07-19 16:32:12 +00:00
2013-12-13 15:46:55 +00:00
2013-09-10 10:20:32 +00:00
2013-07-19 16:21:55 +00:00
2013-07-19 16:24:22 +00:00
2013-07-19 16:24:22 +00:00
2013-09-05 10:36:45 +00:00
2013-07-18 10:40:35 +00:00
2013-07-18 10:06:15 +00:00
2013-10-28 13:53:37 +00:00
2013-07-19 16:21:55 +00:00
2013-07-19 16:24:22 +00:00
2013-07-19 16:24:22 +00:00
2013-09-05 10:36:45 +00:00