[all-commits] [llvm/llvm-project] cc90d4: [MIPatternMatch] Add m_OneNonDBGUse

Jessica Paquette via All-commits all-commits at lists.llvm.org
Fri Jan 15 10:19:13 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc90d41945f6c72d92fbbc6e7b38ceff6e7e1e93
      https://github.com/llvm/llvm-project/commit/cc90d41945f6c72d92fbbc6e7b38ceff6e7e1e93
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-01-15 (Fri, 15 Jan 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
    M llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp

  Log Message:
  -----------
  [MIPatternMatch] Add m_OneNonDBGUse

Add a matcher that checks if the given subpattern has only one non-debug use.

Also improve existing m_OneUse testcase.

Differential Revision: https://reviews.llvm.org/D94705




More information about the All-commits mailing list