OSDN Git Service

[TableGen] Fix leaking of PhysRegInputs.
authorFlorian Hahn <florian.hahn@arm.com>
Tue, 29 May 2018 17:40:03 +0000 (17:40 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Tue, 29 May 2018 17:40:03 +0000 (17:40 +0000)
commite4c36d2f8bd8f53be1796f9b7310f36c27cf94b8
tree8e62de5598f1ff67e71d15b092afcbaac00cb4d4
parent5aba3740e408d6d23add100141c88a89ef58bd59
[TableGen] Fix leaking of PhysRegInputs.

Instead of dynamically allocating the vector for PhysRegs, we can
allocate it on the stack and move it into InstructionMemo.

Reviewers: mcrosier, craig.topper, RKSimon, dsanders

Reviewed By: dsanders

Differential Revision: https://reviews.llvm.org/D47461

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333438 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/FastISelEmitter.cpp