mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 08:46:23 +00:00
remove some dead code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31740 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ab51ddd7c0
commit
0d1bb1322c
@ -3725,23 +3725,16 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
||||
OS << " return Select_" << getLegalCName(OpName)
|
||||
<< (VTStr != "" ? "_" : "") << VTStr << "(N);\n";
|
||||
} else {
|
||||
int Default = -1;
|
||||
OS << " switch (NVT) {\n";
|
||||
for (unsigned i = 0, e = OpVTs.size(); i < e; ++i) {
|
||||
std::string &VTStr = OpVTs[i];
|
||||
if (VTStr == "") {
|
||||
Default = i;
|
||||
continue;
|
||||
}
|
||||
assert(!VTStr.empty() && "Unset vtstr?");
|
||||
OS << " case MVT::" << VTStr << ":\n"
|
||||
<< " return Select_" << getLegalCName(OpName)
|
||||
<< "_" << VTStr << "(N);\n";
|
||||
}
|
||||
OS << " default:\n";
|
||||
if (Default != -1)
|
||||
OS << " return Select_" << getLegalCName(OpName) << "(N);\n";
|
||||
else
|
||||
OS << " break;\n";
|
||||
OS << " break;\n";
|
||||
OS << " }\n";
|
||||
OS << " break;\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user