[llvm] [LLVM][CodeGen][SVE] Fix typo in PPR_p8to15's DecoderMethod. (PR #164429)
    Paul Walker via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 21 07:20:45 PDT 2025
    
    
  
https://github.com/paulwalker-arm created https://github.com/llvm/llvm-project/pull/164429
I think this is effectively an NFC patch (or at least I haven't found a way to trigger a bug from it) because PPR_p8to15 is not used by any instruction operands.  If preferred I can also just remove the DecoderMethod assignment, but I figured that would just cause work for if it ever starts being used.
>From a93579f69dade77b3f2a919debedc2f308ea6854 Mon Sep 17 00:00:00 2001
From: Paul Walker <paul.walker at arm.com>
Date: Tue, 21 Oct 2025 13:41:25 +0100
Subject: [PATCH] [LLVM][CodeGen][SVE] Fix typo in PPR_p8to15's DecoderMethod.
---
 llvm/lib/Target/AArch64/AArch64RegisterInfo.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/AArch64/AArch64RegisterInfo.td b/llvm/lib/Target/AArch64/AArch64RegisterInfo.td
index ef974df823100..47144c7333f7a 100644
--- a/llvm/lib/Target/AArch64/AArch64RegisterInfo.td
+++ b/llvm/lib/Target/AArch64/AArch64RegisterInfo.td
@@ -993,7 +993,7 @@ def PPR_3b : PPRClass<0, 7> { // Restricted 3 bit SVE predicate register class.
   let DecoderMethod = "DecodeSimpleRegisterClass<AArch64::PPRRegClassID, 0, 8>";
 }
 def PPR_p8to15 : PPRClass<8, 15> {
-  let DecoderMethod = "DecodeSimpleRegisterClass<AArch64::PNRRegClassID, 8, 8>";
+  let DecoderMethod = "DecodeSimpleRegisterClass<AArch64::PPRRegClassID, 8, 8>";
 }
 
 def PPRMul2 : PPRClass<0, 14, 2>;
    
    
More information about the llvm-commits
mailing list