aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-09-29 12:12:03 -0700
committerArthur Eubanks <aeubanks@google.com>2021-09-30 09:47:59 -0700
commitfc7604a2c0791d81ca097e935d19784b80bd016d (patch)
tree01025e1232f3111caaedd23eb960b5513d8b4c07 /llvm/lib/Analysis/BasicAliasAnalysis.cpp
parent765348298c52bcff7c33d766cda954c3371a700f (diff)
downloadllvm-fc7604a2c0791d81ca097e935d19784b80bd016d.zip
llvm-fc7604a2c0791d81ca097e935d19784b80bd016d.tar.gz
llvm-fc7604a2c0791d81ca097e935d19784b80bd016d.tar.bz2
Instantiate fewer templates in PassManager::addPass()
We create many instantiations of PassManager::addPass() in PassBuilder.cpp. vector::emplace_back() and make_unique() are both templated and would have many instantiations based on the number of times we instantiate addPass(). Now we directly construct the unique_ptr with the type as the actual unique_ptr type in the vector we are adding it to, so we only have one unique_ptr constructor instantiation across all addPass() instantiations and only the non-templated push_back(). This makes PassBuilder.cpp slightly faster to build. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D110775
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions