[all-commits] [llvm/llvm-project] ea17b1: [MCA] InstructionTables::execute() - use const-ref...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Sep 20 04:54:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea17b15f2dcdc77881cc0183dce4dea1aff9bffa
      https://github.com/llvm/llvm-project/commit/ea17b15f2dcdc77881cc0183dce4dea1aff9bffa
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-09-20 (Mon, 20 Sep 2021)

  Changed paths:
    M llvm/lib/MCA/Stages/InstructionTables.cpp

  Log Message:
  -----------
  [MCA] InstructionTables::execute() - use const-ref iterator in for-range loop. NFCI.

Avoid unnecessary copies, reported by MSVC static analyzer.


  Commit: 4ab7c0d3fa068fb0ce39b9f75c0253d45a99745e
      https://github.com/llvm/llvm-project/commit/4ab7c0d3fa068fb0ce39b9f75c0253d45a99745e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-09-20 (Mon, 20 Sep 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp

  Log Message:
  -----------
  [X86] X86TargetTransformInfo - remove unnecessary if-else after early exit. NFCI.

(style) Break the if-else chain as they all return.


  Commit: 7fc12b822c5d1360780667af94c218733c3fc4e0
      https://github.com/llvm/llvm-project/commit/7fc12b822c5d1360780667af94c218733c3fc4e0
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-09-20 (Mon, 20 Sep 2021)

  Changed paths:
    M llvm/lib/Object/MachOObjectFile.cpp

  Log Message:
  -----------
  MachOObjectFile - checkOverlappingElement - use const-ref to avoid unnecessary copies. NFCI.

Reported by MSVC static analyzer.


Compare: https://github.com/llvm/llvm-project/compare/d6929aaa67c7...7fc12b822c5d


More information about the All-commits mailing list