[all-commits] [llvm/llvm-project] 417d69: [InstSimplify] Reorder checks to be more efficient...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Mar 20 14:05:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 417d69595f0c338bc7e3a8b2b990c3d5f8c04249
      https://github.com/llvm/llvm-project/commit/417d69595f0c338bc7e3a8b2b990c3d5f8c04249
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-03-20 (Fri, 20 Mar 2020)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp

  Log Message:
  -----------
  [InstSimplify] Reorder checks to be more efficient; NFC

First check whether the RHS is a null pointer, and only then
perform a potentially expensive non-zero query.




More information about the All-commits mailing list