1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Fix thinko.

llvm-svn: 98158
This commit is contained in:
Richard Osborne 2010-03-10 16:27:11 +00:00
parent d400202a43
commit 6120fdbd30
2 changed files with 7 additions and 5 deletions

View File

@ -584,7 +584,7 @@ LowerUMUL_LOHI(SDValue Op, SelectionDAG &DAG)
}
SDValue XCoreTargetLowering::
TryExpandADDSUBWithMul(SDNode *N, SelectionDAG &DAG)
TryExpandADDWithMul(SDNode *N, SelectionDAG &DAG)
{
SDValue Mul;
SDValue Other;
@ -650,9 +650,11 @@ ExpandADDSUB(SDNode *N, SelectionDAG &DAG)
(N->getOpcode() == ISD::ADD || N->getOpcode() == ISD::SUB) &&
"Unknown operand to lower!");
SDValue Result = TryExpandADDSUBWithMul(N, DAG);
if (Result.getNode() != 0)
return Result;
if (N->getOpcode() == ISD::ADD) {
SDValue Result = TryExpandADDWithMul(N, DAG);
if (Result.getNode() != 0)
return Result;
}
DebugLoc dl = N->getDebugLoc();

View File

@ -151,7 +151,7 @@ namespace llvm {
EVT VT) const;
// Expand specifics
SDValue TryExpandADDSUBWithMul(SDNode *Op, SelectionDAG &DAG);
SDValue TryExpandADDWithMul(SDNode *Op, SelectionDAG &DAG);
SDValue ExpandADDSUB(SDNode *Op, SelectionDAG &DAG);
virtual SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const;