[llvm] [NVPTX] Prefer ValueType when defining DAG patterns (NFC) (PR #120161)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 16:30:28 PST 2024
================
@@ -3129,279 +3129,279 @@ foreach ta = [v2f16, v2bf16, v2i16, v4i8, i32] in {
// and then cvt to floating-point.
// sint -> f16
-def : Pat<(f16 (sint_to_fp Int1Regs:$a)),
+def : Pat<(f16 (sint_to_fp i1:$a)),
(CVT_f16_s32 (SELP_s32ii -1, 0, Int1Regs:$a), CvtRN)>;
----------------
s-barannikov wrote:
I noticed that some top-level patterns use regclasses on the RHS, while others were converted to use types.
Is this intentional or overlooked?
https://github.com/llvm/llvm-project/pull/120161
More information about the llvm-commits
mailing list