diff options
author | Florian Hahn <flo@fhahn.com> | 2019-07-25 15:35:10 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2019-07-25 15:35:10 +0000 |
commit | c0d0e3bda8ebfb24e84250188f852dc2409928cc (patch) | |
tree | 3a57f1fe481d5c1e3028da4156e9a452be3f18b9 /lldb/packages/Python/lldbsuite/test/sample_test/TestSampleInlineTest.py | |
parent | 46441fdb3c1da5d2c40263d160bdd585f0c3f7d3 (diff) | |
download | bcm5719-llvm-c0d0e3bda8ebfb24e84250188f852dc2409928cc.tar.gz bcm5719-llvm-c0d0e3bda8ebfb24e84250188f852dc2409928cc.zip |
[PredicateInfo] Use SmallVector instead of SmallPtrSet.
We do not need the SmallPtrSet to avoid adding duplicates to
OpsToRename, because we already keep a ValueInfo mapping. If we see an
op for the first time, Infos will be empty and we can also add it to
OpsToRename.
We process operands by visiting BBs depth-first and then iterate over
all instructions & users, so the order should be deterministic.
Therefore we can skip one round of sorting, which we purely needed for
guaranteeing a deterministic order when iterating over the SmallPtrSet.
Reviewers: efriedma, davide
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D64816
llvm-svn: 367028
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/sample_test/TestSampleInlineTest.py')
0 files changed, 0 insertions, 0 deletions