forked from OSchip/llvm-project
Always check the type of node. This prevents situations such as selecting 32-bit rotate target instruction for a 64-bit node when 64-bit pattern is missing.
llvm-svn: 41710
This commit is contained in:
parent
d8e12d3df3
commit
20711a8b9a
|
|
@ -3811,11 +3811,6 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
|||
OpcodeVTMap.find(OpName);
|
||||
std::vector<std::string> &OpVTs = OpVTI->second;
|
||||
OS << " case " << OpName << ": {\n";
|
||||
if (OpVTs.size() == 1) {
|
||||
std::string &VTStr = OpVTs[0];
|
||||
OS << " return Select_" << getLegalCName(OpName)
|
||||
<< VTStr << "(N);\n";
|
||||
} else {
|
||||
// Keep track of whether we see a pattern that has an iPtr result.
|
||||
bool HasPtrPattern = false;
|
||||
bool HasDefaultPattern = false;
|
||||
|
|
@ -3851,7 +3846,6 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
|||
OS << " break;\n";
|
||||
OS << " }\n";
|
||||
OS << " break;\n";
|
||||
}
|
||||
OS << " }\n";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue