Be nice to CellSPU: for this target getSetCCResultType
authorDuncan Sands <baldrick@free.fr>
Wed, 22 Oct 2008 09:23:20 +0000 (09:23 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 22 Oct 2008 09:23:20 +0000 (09:23 +0000)
commitf9410141f703f4e8a6aba717617ef958249f6d13
tree912ec50c3fc638510cea6f0ab05007fa65a7eed4
parent29a2822f287275a0d4df49f98104409d8f97c5df
Be nice to CellSPU: for this target getSetCCResultType
may return i8, which can result in SELECT nodes for
which the type of the condition is i8, but there are
no patterns for select with i8 condition.  Tweak the
LegalizeTypes logic to avoid this as much as possible.
This isn't a real fix because it is still perfectly
possible to end up with such select nodes - CellSPU
needs to be fixed IMHO.

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