[all-commits] [llvm/llvm-project] ed5778: Use cast<> instead of dyn_cast<> as we dereference...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Oct 30 08:22:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ed577892cf99cced0430c7ecdc9e16f5e76a460b
      https://github.com/llvm/llvm-project/commit/ed577892cf99cced0430c7ecdc9e16f5e76a460b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-30 (Fri, 30 Oct 2020)

  Changed paths:
    M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

  Log Message:
  -----------
  Use cast<> instead of dyn_cast<> as we dereference the pointers immediately. NFCI.

Fix clang static analyzer warnings - we're better off relying on cast<> asserting on failure rather than a null dereference crash.


  Commit: 1eeae4310771d8a6896fe09effe88883998f34e8
      https://github.com/llvm/llvm-project/commit/1eeae4310771d8a6896fe09effe88883998f34e8
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-30 (Fri, 30 Oct 2020)

  Changed paths:
    M llvm/test/Transforms/SLPVectorizer/X86/pr47629.ll

  Log Message:
  -----------
  [SLP][X86] Extend target coverage for PR47629

As suggested on D90445, add tests for various SSE/AVX levels and more complex gep pointer offsets


Compare: https://github.com/llvm/llvm-project/compare/4474d4d49ce1...1eeae4310771


More information about the All-commits mailing list