OSDN Git Service

[Verifier] Fix performance regression for LTO builds
authorIvan Krasin <krasin@chromium.org>
Wed, 20 Jan 2016 08:41:22 +0000 (08:41 +0000)
committerIvan Krasin <krasin@chromium.org>
Wed, 20 Jan 2016 08:41:22 +0000 (08:41 +0000)
commitd54bc6a4158813685ec5cf7d2f1ee2579b8225d9
tree05f4569963c383506fe6b4aafbdc88a2dfadacda
parent4d7ffe977948febbc859fc2111bda80b1c2e7a9c
[Verifier] Fix performance regression for LTO builds

Summary:
Fix a significant performance regression by introducing GlobalValueVisited field and reusing the map.
This is a follow up to r257823 that slowed down linking Chrome with LTO by 2.5x.

If you revert this commit, please, also revert r257823.

BUG=https://llvm.org/bugs/show_bug.cgi?id=26214

Reviewers: pcc, loladiro, joker.eph

Subscribers: krasin1, joker.eph, loladiro, pcc

Differential Revision: http://reviews.llvm.org/D16338

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258297 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Verifier.cpp