[llvm] 209c07d - [RISCV] Add debug message that should have been in D126843.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 16:46:44 PDT 2022
Author: Craig Topper
Date: 2022-06-08T16:46:22-07:00
New Revision: 209c07d486f7d28bef4093ad68c23073e5c974a4
URL: https://github.com/llvm/llvm-project/commit/209c07d486f7d28bef4093ad68c23073e5c974a4
DIFF: https://github.com/llvm/llvm-project/commit/209c07d486f7d28bef4093ad68c23073e5c974a4.diff
LOG: [RISCV] Add debug message that should have been in D126843.
For consistency with the other messages in this file.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp b/llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp
index 6452f1a13c9c8..13a47eccb54fd 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;
More information about the llvm-commits
mailing list