Turn sdivs into udivs when we can prove the sign bits are clear. This
authorChris Lattner <sabre@nondot.org>
Fri, 7 Oct 2005 06:10:46 +0000 (06:10 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Oct 2005 06:10:46 +0000 (06:10 +0000)
commit094c8fcd14a04a3bac12eb17e7e04276ce594e11
treeb00184ad17da9f621d8667612c1a39a2298eadcb
parentbabac05a95a1bc61580ba6ad913a1301c88f392e
Turn sdivs into udivs when we can prove the sign bits are clear.  This
implements CodeGen/PowerPC/div-2.ll

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