[llvm] b82fd5d - [GlobalISel] Initialize variables in IndexedLoadStoreMatchInfo

via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 09:16:16 PDT 2024


Author: pvanhout
Date: 2024-05-16T18:16:10+02:00
New Revision: b82fd5d75cff87f7480a24d4a16ea8400cc35c86

URL: https://github.com/llvm/llvm-project/commit/b82fd5d75cff87f7480a24d4a16ea8400cc35c86
DIFF: https://github.com/llvm/llvm-project/commit/b82fd5d75cff87f7480a24d4a16ea8400cc35c86.diff

LOG: [GlobalISel] Initialize variables in IndexedLoadStoreMatchInfo

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h b/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
index ecaece8b68342..87cff154b4eb5 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
@@ -56,9 +56,9 @@ struct IndexedLoadStoreMatchInfo {
   Register Addr;
   Register Base;
   Register Offset;
-  bool RematOffset; // True if Offset is a constant that needs to be
-                    // rematerialized before the new load/store.
-  bool IsPre;
+  bool RematOffset = false; // True if Offset is a constant that needs to be
+                            // rematerialized before the new load/store.
+  bool IsPre = false;
 };
 
 struct PtrAddChain {


        


More information about the llvm-commits mailing list