diff options
author | Roman Tereshin <rtereshin@apple.com> | 2018-05-23 21:12:02 +0000 |
---|---|---|
committer | Roman Tereshin <rtereshin@apple.com> | 2018-05-23 21:12:02 +0000 |
commit | 13229aff5401159ebac03117bd93368867fef273 (patch) | |
tree | 9363b8819829fc3f1fc457b7a15cad9399fd13cc /llvm/lib/CodeGen/ResetMachineFunctionPass.cpp | |
parent | 3e7d8dfae39e20572582112004c4cd1205513a7a (diff) | |
download | llvm-13229aff5401159ebac03117bd93368867fef273.zip llvm-13229aff5401159ebac03117bd93368867fef273.tar.gz llvm-13229aff5401159ebac03117bd93368867fef273.tar.bz2 |
[GlobalISel] NFCI, Getting GlobalISel ~5% faster
by replacing DenseMap with IndexedMap for LLTs within MRI, as
benchmarked by cross-compiling sqlite3 amalgamation for AArch64
on x86 machine.
Reviewed By: qcolombet
Differential Revision: https://reviews.llvm.org/D46809
llvm-svn: 333125
Diffstat (limited to 'llvm/lib/CodeGen/ResetMachineFunctionPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ResetMachineFunctionPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp b/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp index dbc4581..88d550e 100644 --- a/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp +++ b/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp @@ -49,7 +49,7 @@ namespace { // or not, nothing is going to use the vreg types after us. Make sure they // disappear. auto ClearVRegTypesOnReturn = - make_scope_exit([&MF]() { MF.getRegInfo().getVRegToType().clear(); }); + make_scope_exit([&MF]() { MF.getRegInfo().clearVirtRegTypes(); }); if (MF.getProperties().hasProperty( MachineFunctionProperties::Property::FailedISel)) { |