[all-commits] [llvm/llvm-project] 6af7c1: [LoopVectorize] getStepVector - reduce scope of lo...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Feb 10 12:44:42 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6af7c1371abf551389457b9ccb4ce50d8de2c7ea
      https://github.com/llvm/llvm-project/commit/6af7c1371abf551389457b9ccb4ce50d8de2c7ea
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-02-10 (Thu, 10 Feb 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [LoopVectorize] getStepVector - reduce scope of local variable. NFC.


  Commit: 46359424bb2d6eb04508227d6c8ba433298b0ab9
      https://github.com/llvm/llvm-project/commit/46359424bb2d6eb04508227d6c8ba433298b0ab9
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-02-10 (Thu, 10 Feb 2022)

  Changed paths:
    M llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp

  Log Message:
  -----------
  [llvm-libtool-darwin] Use cast<> instead of dyn_cast<> to avoid dereference of nullptr

The pointer is dereferenced immediately, so assert the cast is correct instead of returning nullptr


Compare: https://github.com/llvm/llvm-project/compare/dcffa7d3e140...46359424bb2d


More information about the All-commits mailing list