When expanding an operand, it's not the result value
authorDuncan Sands <baldrick@free.fr>
Tue, 29 Jan 2008 19:29:08 +0000 (19:29 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 29 Jan 2008 19:29:08 +0000 (19:29 +0000)
commit648f880dc907faf5c05f3d79a424597b65758360
treed3eb3648ed17555027849f4ef7dbd1cd46f76d7a
parentc69d3c94425cbdcbfe4f758e07ba083d3377a382
When expanding an operand, it's not the result value
type that matters but the operand type.  This fixes
2008-01-08-IllegalCMP.ll which crashed with the new
legalize infrastructure because SETCC with result
type i8 and operand type i64 was being custom expanded
by the X86 backend.  With this fix, the gcc build gets
as far as the first libcall.

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