[llvm] 2bceb7c - Revert "Fix unused variable in llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp"
Frederik Gossen via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 16 03:00:48 PST 2021
Author: Frederik Gossen
Date: 2021-11-16T12:00:17+01:00
New Revision: 2bceb7c8dae2dc4014147b631ff4901bd36dfd6f
URL: https://github.com/llvm/llvm-project/commit/2bceb7c8dae2dc4014147b631ff4901bd36dfd6f
DIFF: https://github.com/llvm/llvm-project/commit/2bceb7c8dae2dc4014147b631ff4901bd36dfd6f.diff
LOG: Revert "Fix unused variable in llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp"
This reverts commit 40a609aebe4ab51174a164852b6399f322bf6d9a.
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 b9464d52b919..d15e73e9e60c 100644
--- a/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp
@@ -396,11 +396,9 @@ bool LoadStoreOpt::doSingleStoreMerge(SmallVectorImpl<GStore *> &Stores) {
WideConst.insertBits(ConstantVals[Idx], Idx * SmallTy.getSizeInBits());
}
WideReg = Builder.buildConstant(WideValueTy, WideConst).getReg(0);
- LLVM_DEBUG({
- auto NewStore =
- Builder.buildStore(WideReg, FirstStore->getPointerReg(), *WideMMO);
- dbgs() << "Created merged store: " << *NewStore;
- });
+ auto NewStore =
+ Builder.buildStore(WideReg, FirstStore->getPointerReg(), *WideMMO);
+ LLVM_DEBUG(dbgs() << "Created merged store: " << *NewStore);
NumStoresMerged += Stores.size();
MachineOptimizationRemarkEmitter MORE(*MF, nullptr);
More information about the llvm-commits
mailing list