The result of getSetCCResultType (eg: i32) may be larger
authorDuncan Sands <baldrick@free.fr>
Fri, 3 Oct 2008 07:41:46 +0000 (07:41 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 3 Oct 2008 07:41:46 +0000 (07:41 +0000)
commite47561ccff9c7a76f9392b26ae6202e30f1247ed
tree858c63aa5f0e087ba2d1a383f83f802eaddd9861
parenta2582da44dbe7204aac49cdaeccfd4e77ff7c408
The result of getSetCCResultType (eg: i32) may be larger
than the type an i1 is promoted to (eg: i8).  Account
for this.  Noticed by Tilmann Scheller on CellSPU; he
will hopefully take care of fixing this in LegalizeDAG
and adding a testcase!

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