[llvm] [RISCV] Initialize AltFmt and TWiden in the VSETVLIInfo default constructor. (PR #169457)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 24 21:49:11 PST 2025


https://github.com/topperc created https://github.com/llvm/llvm-project/pull/169457

None

>From 349bdbaebcde1857aefbcae87e70290a5ca20b86 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Mon, 24 Nov 2025 21:45:03 -0800
Subject: [PATCH] [RISCV] Initialize AltFmt and TWiden in the VSETVLIInfo
 default constructor.

---
 llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index 2ddc9b0adb9e1..07d0d036d0b57 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -539,7 +539,7 @@ class VSETVLIInfo {
 public:
   VSETVLIInfo()
       : AVLImm(0), TailAgnostic(false), MaskAgnostic(false),
-        SEWLMULRatioOnly(false) {}
+        SEWLMULRatioOnly(false), AltFmt(false), TWiden(0) {}
 
   static VSETVLIInfo getUnknown() {
     VSETVLIInfo Info;



More information about the llvm-commits mailing list