]> granicus.if.org Git - llvm/commit
[SelectionDAG] Cleanup the SIGN_EXTEND_INREG handling in computeKnownBits. NFCI
authorCraig Topper <craig.topper@intel.com>
Fri, 13 Oct 2017 05:35:35 +0000 (05:35 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 13 Oct 2017 05:35:35 +0000 (05:35 +0000)
commit1a4f916514f3e68ce9e87a4761d21e840b0c282d
tree546751125da78e1194cb092e6692f83f726f7ec6
parent8b8bd277b9ed751ddf1f2b870c4df9ee5f58e8c4
[SelectionDAG] Cleanup the SIGN_EXTEND_INREG handling in computeKnownBits. NFCI

Use less temporary APInts. Use bit counting more. Don't call getScalarSizeInBits so many places, just capture it once.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315671 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp