[all-commits] [llvm/llvm-project] ae4bec: [ARM] ARMAsmPrinter::emitAttributes - remove unnec...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Feb 18 02:36:56 PST 2022


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

  Changed paths:
    M llvm/lib/Target/ARM/ARMAsmPrinter.cpp

  Log Message:
  -----------
  [ARM] ARMAsmPrinter::emitAttributes - remove unnecessary nullptr test.

The MMI pointer has already been dereferenced several times.


  Commit: 7104f0c4ab53b0feaf204b942576afdf2106b75b
      https://github.com/llvm/llvm-project/commit/7104f0c4ab53b0feaf204b942576afdf2106b75b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-02-18 (Fri, 18 Feb 2022)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonPatternsHVX.td

  Log Message:
  -----------
  [Hexagon] aligned load/store patterns - use cast<> instead of dyn_cast<> to avoid dereference of nullptr

The pointer is always referenced inside isAlignedMemNode, so assert the cast is correct instead of returning nullptr


Compare: https://github.com/llvm/llvm-project/compare/69ab233a15bf...7104f0c4ab53


More information about the All-commits mailing list