Remove some DAG combiner assumptions about sizes
authorDuncan Sands <baldrick@free.fr>
Mon, 9 Jun 2008 11:32:28 +0000 (11:32 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 9 Jun 2008 11:32:28 +0000 (11:32 +0000)
commit8eab8a2798fe74c98703bdeac64661beea0b4dbc
treeb4b9c225ff328ae733c43c4b0dd76f05db0dcace
parenteddc8f1f8b860adf408414391dc64170a8a2a87e
Remove some DAG combiner assumptions about sizes
of integer types.  Fix the isMask APInt method to
actually work (hopefully) rather than crashing
because it adds apints of different bitwidths.
It looks like isShiftedMask is also broken, but
I'm leaving that one to the APInt people (it is
not used anywhere).

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