[all-commits] [llvm/llvm-project] 14a49f: [DSE] Don't check getUnderlyingObject() return val...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Sep 26 09:04:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14a49f5840a15791e7452200832a51bd11620df6
      https://github.com/llvm/llvm-project/commit/14a49f5840a15791e7452200832a51bd11620df6
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-09-26 (Sun, 26 Sep 2021)

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

  Log Message:
  -----------
  [DSE] Don't check getUnderlyingObject() return value (NFC)

getUnderlyingObject() never returns null. It will simply return
something that is not the "root" underlying object.

Also drop a stale comment.




More information about the All-commits mailing list