[all-commits] [llvm/llvm-project] 641dba: [DAG] Move a few hasOneUse() tests later to reduce...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Jul 29 03:34:56 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 641dba9e281efbd6f676ae97cd73c73271610b5c
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

  Log Message:
  [DAG] Move a few hasOneUse() tests later to reduce unnecessary computations. NFC.

Many of these cases, an early-out on the much cheaper getOpcode() check will avoid us needing to call hasOneUse() entirely.

More information about the All-commits mailing list