[llvm] ecfe7a3 - Revert "Fix unused variable warning."
Frederik Gossen via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 16 02:59:59 PST 2021
Author: Frederik Gossen
Date: 2021-11-16T11:59:34+01:00
New Revision: ecfe7a340440b6d84d3ae57d41baaab336f7ac60
URL: https://github.com/llvm/llvm-project/commit/ecfe7a340440b6d84d3ae57d41baaab336f7ac60
DIFF: https://github.com/llvm/llvm-project/commit/ecfe7a340440b6d84d3ae57d41baaab336f7ac60.diff
LOG: Revert "Fix unused variable warning."
This reverts commit a062e2a8ca27b615cf3d02ed5c551ca85efc0325.
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp b/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
index a8d0a8c4d82f..b9464d52b919 100644
--- a/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
@@ -397,9 +397,9 @@ bool LoadStoreOpt::doSingleStoreMerge(SmallVectorImpl<GStore *> &Stores) {
}
WideReg = Builder.buildConstant(WideValueTy, WideConst).getReg(0);
LLVM_DEBUG({
- dbgs() << "Created merged store: "
- << *Builder.buildStore(WideReg, FirstStore->getPointerReg(),
- *WideMMO);
+ auto NewStore =
+ Builder.buildStore(WideReg, FirstStore->getPointerReg(), *WideMMO);
+ dbgs() << "Created merged store: " << *NewStore;
});
NumStoresMerged += Stores.size();
More information about the llvm-commits
mailing list