diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-10-23 03:50:25 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-10-23 03:50:25 +0000 |
commit | 9242b73286f050c53a26225b2a9acd14aeaa91da (patch) | |
tree | d712f7f99652462e9dd95901015521d7eb05bd8b /lib/Target/R600 | |
parent | 752d303a103a4b2504ddf50c0613a3c2f3536014 (diff) | |
download | llvm-9242b73286f050c53a26225b2a9acd14aeaa91da.tar.gz llvm-9242b73286f050c53a26225b2a9acd14aeaa91da.tar.bz2 llvm-9242b73286f050c53a26225b2a9acd14aeaa91da.tar.xz |
R600/SI: Replace ffs(x) - 1 with countTrailingZeros(x)
ffs(x) broke the mingw buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600')
-rw-r--r-- | lib/Target/R600/SIISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp index b37d5b282b..371572e31a 100644 --- a/lib/Target/R600/SIISelLowering.cpp +++ b/lib/Target/R600/SIISelLowering.cpp @@ -1115,7 +1115,7 @@ void SITargetLowering::adjustWritemask(MachineSDNode *&Node, unsigned Comp; for (unsigned i = 0, Dmask = OldDmask; i <= Lane; i++) { assert(Dmask); - Comp = ffs(Dmask)-1; + Comp = countTrailingZeros(Dmask); Dmask &= ~(1 << Comp); } |