[SystemZ] Address review comments for r233689
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 31 Mar 2015 19:28:50 +0000 (19:28 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 31 Mar 2015 19:28:50 +0000 (19:28 +0000)
commita9204bb532cb1bce50532ba385e3655300124022
tree8e7944285beabbd16c4a768d66f37861b6f6f7bb
parent1b103763190e2b4c22ccd589e806915e3c7d96eb
[SystemZ] Address review comments for r233689

Change lowerCTPOP to:
- Gracefully handle a known-zero input value
- Simplify computation of significant bit size

Thanks to Jay Foad for the review!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233736 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp