[all-commits] [llvm/llvm-project] 2a2e21: [X86] combineExtractVectorElt - call hasOneUse() a...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Apr 2 09:55:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a2e21625fd499359f53f13a5f712fbe224db71b
      https://github.com/llvm/llvm-project/commit/2a2e21625fd499359f53f13a5f712fbe224db71b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-04-02 (Sun, 02 Apr 2023)

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

  Log Message:
  -----------
  [X86] combineExtractVectorElt - call hasOneUse() as late as possible. NFCI.

MMX conversion is very unlikely, so check the value types first, and make the more expensive hasOneUse() call as late as possible.




More information about the All-commits mailing list