[all-commits] [llvm/llvm-project] 1a9b55: [SelectionDAG] Don't create entries in ValueMap in...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Mar 22 23:31:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a9b55b63a6e18a4692eeb795697cb61ca1b002f
      https://github.com/llvm/llvm-project/commit/1a9b55b63a6e18a4692eeb795697cb61ca1b002f
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/FunctionLoweringInfo.h
    M llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp

  Log Message:
  -----------
  [SelectionDAG] Don't create entries in ValueMap in ComputePHILiveOutRegInfo

Instead of using operator[], use DenseMap::find to prevent default
constructing an entry if it isn't already in the map.




More information about the All-commits mailing list