aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
diff options
context:
space:
mode:
authorRoman Tereshin <rtereshin@apple.com>2018-05-23 21:12:02 +0000
committerRoman Tereshin <rtereshin@apple.com>2018-05-23 21:12:02 +0000
commit13229aff5401159ebac03117bd93368867fef273 (patch)
tree9363b8819829fc3f1fc457b7a15cad9399fd13cc /llvm/lib/CodeGen/ResetMachineFunctionPass.cpp
parent3e7d8dfae39e20572582112004c4cd1205513a7a (diff)
downloadllvm-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.cpp2
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)) {