OSDN Git Service

[GISel][NFC]: Add methods to speed up insertion into GISelWorklist
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Fri, 15 Feb 2019 01:37:54 +0000 (01:37 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Fri, 15 Feb 2019 01:37:54 +0000 (01:37 +0000)
commit84018efd3fc05aca3b88959839a00c8b561580af
tree39ae7d654e937845eb62a4aecd44b0c809a16d7b
parent1d02248c5fe75a1d301a4d9cb15056aa29605947
[GISel][NFC]: Add methods to speed up insertion into GISelWorklist

https://reviews.llvm.org/D58073

Speed up insertion during the initial populating phase into the
GISelWorkList by deferring repeatedly resizing the DenseMap.
This results in ~10% improvement in the combiner passes, and
~3% speedup in the Legalizer.

reviewed by: aemerson.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354093 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/GISelWorkList.h
lib/CodeGen/GlobalISel/Combiner.cpp
lib/CodeGen/GlobalISel/Legalizer.cpp