R600: Add checks for urem/srem by a constant
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 21 Jan 2015 22:56:15 +0000 (22:56 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 21 Jan 2015 22:56:15 +0000 (22:56 +0000)
commitb45c78bc2ce7a569f499b827d193797ab62d03f7
tree28ce44a3bcec49a648d4e28b63014fb27f46bfcf
parentc1988f384c9d792da7289fc3ef450b5156d47ff3
R600: Add checks for urem/srem by a constant

Make sure this uses the faster expansion using magic constants
to avoid the full division path.

llvm-svn: 226734
llvm/test/CodeGen/R600/srem.ll
llvm/test/CodeGen/R600/urem.ll