[all-commits] [llvm/llvm-project] 2b8a70: [DSE] Avoid calling isRemovable() on non-analyzabl...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Dec 24 01:19:19 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b8a703858ea994f6665fc35220f2ea56cabe39d
      https://github.com/llvm/llvm-project/commit/2b8a703858ea994f6665fc35220f2ea56cabe39d
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2021-12-24 (Fri, 24 Dec 2021)

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

  Log Message:
  -----------
  [DSE] Avoid calling isRemovable() on non-analyzable location (NFC)

At this point the instruction may either have an analyzable
write or be a terminator. For terminators, isRemovable() is not
necessarily well-defined. Move the check until after we have ensured
that it is not a terminator.




More information about the All-commits mailing list