[RegisterBankInfo] Avoid heap allocation in InstructionMapping.
authorQuentin Colombet <qcolombet@apple.com>
Tue, 20 Sep 2016 00:48:44 +0000 (00:48 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 20 Sep 2016 00:48:44 +0000 (00:48 +0000)
commitc3652ed69fb35f0c16d84909475799830eae32a3
treeacac0faf3249271ba94081cced4c6c3f367e7511
parente9a6f09dda1b422795559f6a2bb679b2413f16bb
[RegisterBankInfo] Avoid heap allocation in InstructionMapping.

Use SmallVector instead of dynamically allocated arrays for the mapping of the
operands in the InstructionMapping. That way we avoid heap allocation for most
of the cases. Ultimately, we should not have to rely on such tricky, the
instances of InstructionMapping would be TableGen'ed.

This improves the compilation time of the RegBankSelect pass.

llvm-svn: 281955
llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h