[llvm] Add PreLegalizer pattern matching for degrees GL extension (PR #216506)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 23 07:21:06 PDT 2026


================
@@ -22,6 +22,12 @@ def vector_select_to_faceforward_lowering : GICombineRule <
   (apply [{ Helper.applySPIRVFaceForward(*${root}); }])
 >;
 
+def degrees_lowering
+    : GICombineRule<(defs root:$root),
+                    (match (wip_match_opcode G_FMUL):$root,
----------------
albertbolt1 wrote:

removed wip_match_opcode

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


More information about the llvm-commits mailing list