[all-commits] [llvm/llvm-project] 42cb2f: [GlobalISel] Mark mi_match as nodiscard

Jessica Paquette via All-commits all-commits at lists.llvm.org
Fri Oct 7 15:47:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42cb2f8b1298835575a839e184d738086c22c766
      https://github.com/llvm/llvm-project/commit/42cb2f8b1298835575a839e184d738086c22c766
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2022-10-07 (Fri, 07 Oct 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
    M llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp

  Log Message:
  -----------
  [GlobalISel] Mark mi_match as nodiscard

Typically when you match something, you want to check the result.

Fix a couple warnings in the AMDGPUPostLegalizerCombiner which appear as a
result of this.

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




More information about the All-commits mailing list