Skip to content

Commit f01b62a

Browse files
[GlobalISel] Fix warnings
This patch fixes: llvm/lib/CodeGen/GlobalISel/CombinerHelperCasts.cpp:167:21: error: unused variable 'DL' [-Werror,-Wunused-variable] llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp:320:15: error: unused variable 'DL' [-Werror,-Wunused-variable]
1 parent 27d09e6 commit f01b62a

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

llvm/lib/CodeGen/GlobalISel/CombinerHelperCasts.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ bool CombinerHelper::matchTruncateOfExt(const MachineInstr &Root,
164164

165165
bool CombinerHelper::isCastFree(unsigned Opcode, LLT ToTy, LLT FromTy) const {
166166
const TargetLowering &TLI = getTargetLowering();
167-
const DataLayout &DL = getDataLayout();
168167
LLVMContext &Ctx = getContext();
169168

170169
switch (Opcode) {

llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ bool LoadStoreOpt::mergeStores(SmallVectorImpl<GStore *> &StoresToMerge) {
317317
assert(MRI->getType(StoreMI->getValueReg()) == OrigTy);
318318
#endif
319319

320-
const auto &DL = MF->getFunction().getDataLayout();
321320
bool AnyMerged = false;
322321
do {
323322
unsigned NumPow2 = llvm::bit_floor(StoresToMerge.size());

0 commit comments

Comments
 (0)