mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-28 22:00:30 +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
b95f76e8f8
commit
00f5ca799d
@ -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…
Reference in New Issue
Block a user