summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>2015-03-04 12:10:18 +0000
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>2015-03-04 12:10:18 +0000
commit2ef2888273aad5dea70f8de474b5a006ba181a9e (patch)
tree452e4fc397be93ba8a64b10992cc07b22950a94d /llvm/lib
parentad53695a09f34fa2578b43227ec5d06fb9915174 (diff)
downloadbcm5719-llvm-2ef2888273aad5dea70f8de474b5a006ba181a9e.tar.gz
bcm5719-llvm-2ef2888273aad5dea70f8de474b5a006ba181a9e.zip
[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. llvm-svn: 231237
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Mips/MipsISelLowering.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp
index 0b54d59c1e5..9c50c908f12 100644
--- a/llvm/lib/Target/Mips/MipsISelLowering.cpp
+++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp
@@ -640,10 +640,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,
OpenPOWER on IntegriCloud