[all-commits] [llvm/llvm-project] 18034a: [clang][dataflow][NFC] Convert mutable vector refe...

Eric Li via All-commits all-commits at lists.llvm.org
Thu Aug 4 10:12:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18034aee63eeac673496a88d9e90c8dd73d15927
      https://github.com/llvm/llvm-project/commit/18034aee63eeac673496a88d9e90c8dd73d15927
  Author: Eric Li <li.zhe.hua at gmail.com>
  Date:   2022-08-04 (Thu, 04 Aug 2022)

  Changed paths:
    M clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
    M clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp

  Log Message:
  -----------
  [clang][dataflow][NFC] Convert mutable vector references to ArrayRef

`transferBlock` and `computeBlockInputState` only read the
`BlockStates` vector for the predecessor block(s), and do not need to
mutate any of the contents. Only `runTypeErasedDataflowAnalysis`
writes into the `vector`, so simply down to an `ArrayRef`.


  Commit: 5659908f4c6d32d3f7d1ebbe014fbd9419cdfb9c
      https://github.com/llvm/llvm-project/commit/5659908f4c6d32d3f7d1ebbe014fbd9419cdfb9c
  Author: Eric Li <li.zhe.hua at gmail.com>
  Date:   2022-08-04 (Thu, 04 Aug 2022)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp

  Log Message:
  -----------
  [clang][dataflow][NFC] Resize vector directly with ctor

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


Compare: https://github.com/llvm/llvm-project/compare/0eb7d86f5873...5659908f4c6d


More information about the All-commits mailing list