OSDN Git Service

[PGO][CHR] Speed up following long use-def chains.
authorHiroshi Yamauchi <yamauchi@google.com>
Wed, 22 May 2019 18:37:34 +0000 (18:37 +0000)
committerHiroshi Yamauchi <yamauchi@google.com>
Wed, 22 May 2019 18:37:34 +0000 (18:37 +0000)
commit7b98fc0e462e3ccaceb8a643c7116a5b0f09eb49
treee064f9e356d30149be293ad34165e87db9fd3fd5
parenta4d7f31ab117bec1a2fc810b9d10ad90449f59ff
[PGO][CHR] Speed up following long use-def chains.

Summary: Avoid visiting an instruction more than once by using a map.

Reviewers: davidxl

Reviewed By: davidxl

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62262

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361416 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
test/Transforms/PGOProfile/chr.ll