[InstCombine] refactor ctlz/cttz folds (NFCI)
authorSanjay Patel <spatel@rotateright.com>
Fri, 5 Aug 2016 22:42:46 +0000 (22:42 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 5 Aug 2016 22:42:46 +0000 (22:42 +0000)
commit8e3ab17c448015cb40a8abb6a7f8a32555f1ee1c
treef6ffa54f9d3068cbddb15a46ed71b4c29de4e9d8
parent0f6aad4ad20040bd9314ebc026f7238cb7a8519e
[InstCombine] refactor ctlz/cttz folds (NFCI)

Note that this fold really belongs in InstSimplify.
Refactoring here anyway as an intermediate step because
there's a planned addition to this function in D23134.

Differential Revision: https://reviews.llvm.org/D23223

llvm-svn: 277883
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp