OSDN Git Service

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)
commit85661f76e350d73c72d912ad1707e7509c115664
tree60cdf34b7d8004be38cb65b603c315516ea1ab5f
parent9a43e3d47f70bd90ef08f0abbafa1335dfbf80ce
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226734 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/R600/srem.ll
test/CodeGen/R600/urem.ll