mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 08:46:06 +00:00
TableGen: Don't reconstruct CodeGenDAGTarget
This is quite expensive and it's already available. Just ReadLegalValueTypes is taking 4 seconds for me in a debug build for AMDGPU's -gen-instr-info, and this was introducing a second call.
This commit is contained in:
parent
304b0ed403
commit
421a40b325
@ -822,7 +822,7 @@ void InstrInfoEmitter::emitEnums(raw_ostream &OS) {
|
||||
|
||||
OS << "namespace llvm {\n\n";
|
||||
|
||||
CodeGenTarget Target(Records);
|
||||
const CodeGenTarget &Target = CDP.getTargetInfo();
|
||||
|
||||
// We must emit the PHI opcode first...
|
||||
StringRef Namespace = Target.getInstNamespace();
|
||||
|
Loading…
x
Reference in New Issue
Block a user