David Majnemer fa49d7d6e4 InstCombine: Flip the order of two urem transforms
There are two transforms in visitUrem that conflict with each other.

*) One, if a divisor is a power of two, subtracts one from the divisor
   and turns it into a bitwise-and.
*) The other unwraps both operands if they are surrounded by zext
   instructions.

Flipping the order allows the subtraction to go beneath the sign
extension.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181668 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-12 00:07:05 +00:00
..
2012-02-29 01:53:13 +00:00
2013-02-16 23:41:36 +00:00
2013-04-20 17:39:52 +00:00
2012-11-14 20:18:34 +00:00
2012-12-04 00:04:54 +00:00
2013-03-28 19:34:14 +00:00
2012-12-05 00:33:16 +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.