[all-commits] [llvm/llvm-project] 0f8345: [CodeGen] SDDbgValue::getSDNodes() - use const-ref...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Sep 21 05:01:41 PDT 2021


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

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SDNodeDbgValue.h

  Log Message:
  -----------
  [CodeGen] SDDbgValue::getSDNodes() - use const-ref to avoid unnecessary copies. NFCI.

Reported by MSVC static analyzer.


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

  Changed paths:
    M llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

  Log Message:
  -----------
  RewriteStatepointsForGC - Use const-ref iterator in for-range loops. NFCI.

Avoid unnecessary copies, reported by MSVC static analyzer.


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

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

  Log Message:
  -----------
  [CodeGen] SelectionDAGBuilder - Use const-ref iterator in for-range loops. NFCI.

Avoid unnecessary copies, reported by MSVC static analyzer.


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
    A llvm/test/Transforms/InstCombine/pr51824.ll

  Log Message:
  -----------
  [InstCombine] foldConstantInsEltIntoShuffle - bail if we fail to find constant element (PR51824)

If getAggregateElement() returns null for any element, early out as otherwise we will assert when creating a new constant vector

Fixes PR51824 + ; OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38057


Compare: https://github.com/llvm/llvm-project/compare/9d7b7350c9e0...fc8f1e4419d3


More information about the All-commits mailing list