commit | 685efb3953de37c0ea90e1b41086e50360492a0c | [log] [tgz] |
---|---|---|
author | Chandler Carruth <chandlerc@gmail.com> | Thu Sep 10 02:31:42 2015 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Oct 06 01:14:39 2020 -0700 |
tree | b3fe6b222c5258694789fca7cec492ea9bc509d0 | |
parent | 53e1315d708d6e0ceee311bf377020845e6de02e [diff] |
[LPM] Use a map from analysis ID to immutable passes in the legacy pass manager to avoid a slow linear scan of every immutable pass and on every attempt to find an analysis pass. This speeds up 'check-llvm' on an unoptimized build for me by 15%, YMMV. It should also help (a tiny bit) other folks that are really bottlenecked on repeated runs of tiny pass pipelines across small IR files. llvm-svn: 247240 GitOrigin-RevId: b1e3a9ae8d30e23186f08548f9bd3ba79c09ea1c