[NVPTX] Reduce stack size in NVPTXAsmPrinter::doInitialization().
authorJustin Lebar <jlebar@google.com>
Sat, 22 Dec 2018 01:30:37 +0000 (01:30 +0000)
committerJustin Lebar <jlebar@google.com>
Sat, 22 Dec 2018 01:30:37 +0000 (01:30 +0000)
commit7f41fe3a58b0deb25190c2e67ef22e15d7b745b7
treeb0167fdedfefefb286ea4379be73b27775e7c6f7
parent9953577cb2b5fae3284725d35ef678bfb5695a2d
[NVPTX] Reduce stack size in NVPTXAsmPrinter::doInitialization().

NVPTXAsmPrinter::doInitialization() was creating an NVPTXSubtarget on
the stack.  This object is huge, about 80kb.  Also it's slow to create.
And it's all redundant; we have one in NVPTXTargetMachine anyway!

llvm-svn: 349982
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp