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:
parent
d400202a43
commit
6120fdbd30
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user