[all-commits] [llvm/llvm-project] 91aa5d: [PhiValues] Remove redundant map searches

Ehud Katz via All-commits all-commits at lists.llvm.org
Sat Nov 23 00:34:10 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 91aa5daec4192da8145cf65fb0eb187d356ee4c8
      https://github.com/llvm/llvm-project/commit/91aa5daec4192da8145cf65fb0eb187d356ee4c8
  Author: Ehud Katz <ehudkatz at gmail.com>
  Date:   2019-11-23 (Sat, 23 Nov 2019)

  Changed paths:
    M llvm/include/llvm/Analysis/PhiValues.h
    M llvm/lib/Analysis/PhiValues.cpp

  Log Message:
  -----------
  [PhiValues] Remove redundant map searches

Remove redundant map searches.
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.

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




More information about the All-commits mailing list