mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Move the code that starts printing the Select_* functions
after the code that sorts the patterns. This doesn't affect the output, but it makes the code a little easier to follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1825,9 +1825,6 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
|||||||
} else
|
} else
|
||||||
OpVTI->second.push_back(OpVTStr);
|
OpVTI->second.push_back(OpVTStr);
|
||||||
|
|
||||||
OS << "SDNode *Select_" << getLegalCName(OpName)
|
|
||||||
<< OpVTStr << "(const SDValue &N) {\n";
|
|
||||||
|
|
||||||
// We want to emit all of the matching code now. However, we want to emit
|
// We want to emit all of the matching code now. However, we want to emit
|
||||||
// the matches in order of minimal cost. Sort the patterns so the least
|
// the matches in order of minimal cost. Sort the patterns so the least
|
||||||
// cost one is at the start.
|
// cost one is at the start.
|
||||||
@@ -1869,6 +1866,9 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
|||||||
// Next, reverse the list of patterns itself for the same reason.
|
// Next, reverse the list of patterns itself for the same reason.
|
||||||
std::reverse(CodeForPatterns.begin(), CodeForPatterns.end());
|
std::reverse(CodeForPatterns.begin(), CodeForPatterns.end());
|
||||||
|
|
||||||
|
OS << "SDNode *Select_" << getLegalCName(OpName)
|
||||||
|
<< OpVTStr << "(const SDValue &N) {\n";
|
||||||
|
|
||||||
// Emit all of the patterns now, grouped together to share code.
|
// Emit all of the patterns now, grouped together to share code.
|
||||||
EmitPatterns(CodeForPatterns, 2, OS);
|
EmitPatterns(CodeForPatterns, 2, OS);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user