Provide this optimization as well:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 15 May 2005 21:19:45 +0000 (21:19 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 15 May 2005 21:19:45 +0000 (21:19 +0000)
commitf74eb3fa2a0761054277664a9eecb61e93ee614a
tree9ad9b507590f0b6d2c47bf20ab95f87498d6d8f5
parentfc87928ebb4d50850e9b2b36f0c24c4fb17877ba
Provide this optimization as well:
ffs(x) -> (x == 0 ? 0 : 1+llvm.cttz(x))

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22068 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SimplifyLibCalls.cpp