Generalize the new code in instcombine's ComputeNumSignBits for handling
authorDan Gohman <gohman@apple.com>
Fri, 23 May 2008 02:28:01 +0000 (02:28 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 23 May 2008 02:28:01 +0000 (02:28 +0000)
commita332f17c8c80bb457617052fb35a3f2cecd05493
tree78f7513fd2bc8bde2d204017f225ef551dea752b
parente4977cf750eaff28275429191821420c20b0c64f
Generalize the new code in instcombine's ComputeNumSignBits for handling
and/or to handle more cases (such as this add-sitofp.ll testcase), and
port it to selectiondag's ComputeNumSignBits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51469 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/add-sitofp.ll [new file with mode: 0644]