[all-commits] [llvm/llvm-project] 9d86bf: [X86] Move hasOneUse check after opcode check. NFC

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


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

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] Move hasOneUse check after opcode check. NFC

Checking opcode is cheap. hasOneUse might not be if the node has
multiple results. By checking the opcode we can rule out nodes
with multiple results we aren't interested in.




More information about the All-commits mailing list