HomePhabricator

[NVPTX] Reduce stack size in NVPTXAsmPrinter::doInitialization().

Description

[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!

Details

Committed
jlebarDec 21 2018, 5:30 PM
Parents
rL349981: [CUDA] Treat extern global variable shadows same as regular extern vars.
Branches
Unknown
Tags
Unknown