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

remove a little hack I did for the old isel, not needed

now that it is gone.

llvm-svn: 97516
This commit is contained in:
Chris Lattner 2010-03-01 22:51:11 +00:00
parent e37f8fa74a
commit 745181da4b
2 changed files with 2 additions and 20 deletions

View File

@ -198,26 +198,12 @@ namespace {
SDValue &Scale, SDValue &Index, SDValue &Disp);
bool SelectTLSADDRAddr(SDNode *Op, SDValue N, SDValue &Base,
SDValue &Scale, SDValue &Index, SDValue &Disp);
bool SelectScalarSSELoadXXX(SDNode *Root, SDValue N,
bool SelectScalarSSELoad(SDNode *Root, SDValue N,
SDValue &Base, SDValue &Scale,
SDValue &Index, SDValue &Disp,
SDValue &Segment,
SDValue &NodeWithChain);
// FIXME: Remove this hacky wrapper.
bool SelectScalarSSELoad(SDNode *Root, SDValue N, SDValue &Base,
SDValue &Scale, SDValue &Index,
SDValue &Disp, SDValue &Segment,
SDValue &PatternChainResult,
SDValue &PatternInputChain) {
SDValue Tmp;
if (!SelectScalarSSELoadXXX(Root, N, Base, Scale, Index, Disp, Segment,
Tmp))
return false;
PatternInputChain = Tmp.getOperand(0);
PatternChainResult = Tmp.getValue(1);
return true;
}
bool TryFoldLoad(SDNode *P, SDValue N,
SDValue &Base, SDValue &Scale,
SDValue &Index, SDValue &Disp,
@ -1317,7 +1303,7 @@ bool X86DAGToDAGISel::SelectAddr(SDNode *Op, SDValue N, SDValue &Base,
/// We also return:
/// PatternChainNode: this is the matched node that has a chain input and
/// output.
bool X86DAGToDAGISel::SelectScalarSSELoadXXX(SDNode *Root,
bool X86DAGToDAGISel::SelectScalarSSELoad(SDNode *Root,
SDValue N, SDValue &Base,
SDValue &Scale, SDValue &Index,
SDValue &Disp, SDValue &Segment,

View File

@ -608,10 +608,6 @@ void MatcherTableEmitter::EmitPredicateFunctions(const CodeGenDAGPatterns &CGP,
OS << " Result.resize(Result.size()+" << NumOps << ");\n";
OS << " return " << P.getSelectFunc();
// FIXME: Temporary hack until old isel dies.
if (P.hasProperty(SDNPHasChain))
OS << "XXX";
OS << "(Root, N";
for (unsigned i = 0; i != NumOps; ++i)
OS << ", Result[Result.size()-" << (NumOps-i) << ']';