Skip to content

Commit 75997e8

Browse files
committed
[AMDGPU] Fixed msan build
LoadStoreOptimizer was using uninitialized SCC value for instructions where it is unsupported.
1 parent fd3297d commit 75997e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ class SILoadStoreOptimizer : public MachineFunctionPass {
104104
unsigned BaseOff;
105105
unsigned DMask;
106106
InstClassEnum InstClass;
107-
bool GLC;
108-
bool SLC;
109-
bool DLC;
110-
bool SCCB; // vmem only.
107+
bool GLC = 0;
108+
bool SLC = 0;
109+
bool DLC = 0;
110+
bool SCCB = 0; // vmem only.
111111
bool UseST64;
112112
int AddrIdx[MaxAddressRegs];
113113
const MachineOperand *AddrReg[MaxAddressRegs];

0 commit comments

Comments
 (0)