]> granicus.if.org Git - llvm/commitdiff
Merging r231237:
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 27 Apr 2015 15:07:42 +0000 (15:07 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 27 Apr 2015 15:07:42 +0000 (15:07 +0000)
------------------------------------------------------------------------
r231237 | vkalintiris | 2015-03-04 12:10:18 +0000 (Wed, 04 Mar 2015) | 6 lines

[mips] Specify the correct value type when combining a CMovFP node.

This commit fixes a bug introduced in r230956 where we were creating
CMovFP_{T,F} nodes with multiple return value types (one for each operand).
With this change the return value type of the new node is the same as the
value type of the True/False operands of the original node.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@235888 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsISelLowering.cpp

index ae18261487203aed5999ff41c140e01f2e727123..c0df9b77ededccf22f53a274384d33c563212388 100644 (file)
@@ -642,10 +642,8 @@ static SDValue performCMovFPCombine(SDNode *N, SelectionDAG &DAG,
                                                          MipsISD::CMovFP_T;
 
   SDValue FCC = N->getOperand(1), Glue = N->getOperand(3);
-  SDVTList VTs = DAG.getVTList(FCC.getValueType(), ValueIfTrue.getValueType(),
-                               ValueIfFalse.getValueType(),
-                               Glue.getValueType());
-  return DAG.getNode(Opc, SDLoc(N), VTs, ValueIfFalse, FCC, ValueIfTrue, Glue);
+  return DAG.getNode(Opc, SDLoc(N), ValueIfFalse.getValueType(),
+                     ValueIfFalse, FCC, ValueIfTrue, Glue);
 }
 
 static SDValue performANDCombine(SDNode *N, SelectionDAG &DAG,