[all-commits] [llvm/llvm-project] c6dc22: [DAGCombiner] Move call to hasOneUse after opcode ...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Apr 15 17:04:49 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6dc229a6d5224b85dbca6e4310db1dfa6eb214d
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-04-15 (Fri, 15 Apr 2022)

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

  Log Message:
  [DAGCombiner] Move call to hasOneUse after opcode checks. NFC

Checking the opcode is cheap, counting the number of uses is not.

More information about the All-commits mailing list