[PATCH] D69337: [PhiValues] Remove redundant searches in DenseMap
Ehud Katz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 23 05:28:52 PDT 2019
ekatz created this revision.
ekatz added reviewers: lattner, chandlerc.
ekatz added a project: LLVM.
Herald added subscribers: llvm-commits, hiraditya.
Remove redundant searches in DenseMap.
For example, every call to "operator[]" is actually translated to a "find" call, and 2 consecutive calls to the operator, without changing the map in-between, is just redundant, and inefficient.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D69337
Files:
llvm/include/llvm/Analysis/PhiValues.h
llvm/lib/Analysis/PhiValues.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69337.226121.patch
Type: text/x-patch
Size: 5663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191023/56a74d75/attachment.bin>
More information about the llvm-commits
mailing list