From 209c07d486f7d28bef4093ad68c23073e5c974a4 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 8 Jun 2022 16:46:01 -0700 Subject: [PATCH] [RISCV] Add debug message that should have been in D126843. For consistency with the other messages in this file. --- llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp b/llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp index 6452f1a..13a47ec 100644 --- a/llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp +++ b/llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp @@ -214,6 +214,7 @@ bool RISCVMergeBaseOffsetOpt::detectAndFoldOffset(MachineInstr &HiLUI, MachineInstr &TailTail = *MRI->use_instr_begin(TailDestReg); if (TailTail.getOpcode() == RISCV::ADDI) { Offset += TailTail.getOperand(2).getImm(); + LLVM_DEBUG(dbgs() << " Offset Instrs: " << Tail << TailTail); DeadInstrs.insert(&Tail); foldOffset(HiLUI, LoADDI, TailTail, Offset); return true; -- 2.7.4