[llvm] [AMDGPU] Improve MIR pattern for FMinFMaxLegacy combine. NFC. (PR #90968)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 06:47:47 PDT 2024


================
@@ -15,8 +15,9 @@ def fmin_fmax_legacy_matchdata : GIDefMatchData<"FMinFMaxLegacyInfo">;
 let Predicates = [HasFminFmaxLegacy] in
 def fcmp_select_to_fmin_fmax_legacy : GICombineRule<
   (defs root:$select, fmin_fmax_legacy_matchdata:$matchinfo),
----------------
jayfoad wrote:

Am I supposed to list `$fcmp` in the defs since I am passing it into my match function? Or doesn't that count as an "external" use of `$fcmp`?

https://github.com/llvm/llvm-project/pull/90968


More information about the llvm-commits mailing list