OSDN Git Service

[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)
commitb57910bcdff7009bc1383f5bce1771c9e5425ef5
tree8cedac38b2de867ba40e3282b8e5ca359d5e5b50
parent8a12381a93554724bdcf8bda06a730fb2cbb1fee
[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!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349982 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXAsmPrinter.cpp