[all-commits] [llvm/llvm-project] 3e8b17: [IR] Avoid redundant map lookup [NFC]

Jannik Silvanus via All-commits all-commits at lists.llvm.org
Thu Dec 14 01:14:09 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e8b175eec6fef1a073fb7d0d867fbc6a7837f57
      https://github.com/llvm/llvm-project/commit/3e8b175eec6fef1a073fb7d0d867fbc6a7837f57
  Author: Jannik Silvanus <jannik.silvanus at amd.com>
  Date:   2023-12-14 (Thu, 14 Dec 2023)

  Changed paths:
    M llvm/lib/IR/Operator.cpp

  Log Message:
  -----------
  [IR] Avoid redundant map lookup [NFC]

Use the iterator returned by MapVector::insert to update
the value in the map, instead of a second redundant map lookup.




More information about the All-commits mailing list