[llvm] bd9ae59 - Initialize ExtAddrMode::Scale
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 7 15:21:41 PST 2022
Author: Vitaly Buka
Date: 2022-01-07T15:21:22-08:00
New Revision: bd9ae596d8635e36391be22f7ed74f77fb2d0371
URL: https://github.com/llvm/llvm-project/commit/bd9ae596d8635e36391be22f7ed74f77fb2d0371
DIFF: https://github.com/llvm/llvm-project/commit/bd9ae596d8635e36391be22f7ed74f77fb2d0371.diff
LOG: Initialize ExtAddrMode::Scale
Detected by msan with:
-Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1
Differential Revision: https://reviews.llvm.org/D116830
Added:
Modified:
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index bbace97b76cb5..93c17133c8455 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -2574,6 +2574,7 @@ AArch64InstrInfo::getAddrModeFromMemoryOp(const MachineInstr &MemI,
AM.BaseReg = Base->getReg();
AM.Displacement = Offset;
AM.ScaledReg = 0;
+ AM.Scale = 0;
return AM;
}
More information about the llvm-commits
mailing list