Fix a bug compiling: select (i32 < i32), f32, f32

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-08-10 03:40:09 +00:00
parent 94f4032448
commit 979a21e766

View File

@ -2140,6 +2140,7 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
ISD::CondCode CC;
if (Cond->getOpcode() == ISD::SETCC &&
!MVT::isInteger(N.getOperand(1).getValueType()) &&
!MVT::isInteger(Cond->getOperand(1).getValueType()) &&
cast<CondCodeSDNode>(Cond->getOperand(2))->get() != ISD::SETEQ &&
cast<CondCodeSDNode>(Cond->getOperand(2))->get() != ISD::SETNE) {
MVT::ValueType VT = Cond->getOperand(0).getValueType();