[llvm] b7b945b - LiveRangeCalc: Pass output stream to verify
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 00:37:00 PDT 2024
Author: Matt Arsenault
Date: 2024-09-25T11:36:54+04:00
New Revision: b7b945b09cddad128e42d82d759e74f0cd5b0ee3
URL: https://github.com/llvm/llvm-project/commit/b7b945b09cddad128e42d82d759e74f0cd5b0ee3
DIFF: https://github.com/llvm/llvm-project/commit/b7b945b09cddad128e42d82d759e74f0cd5b0ee3.diff
LOG: LiveRangeCalc: Pass output stream to verify
Restores output on this failure after
71ca9fcb8dc9ea0e1e3a4a47820edc78c398a85e
Added:
Modified:
llvm/lib/CodeGen/LiveRangeCalc.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/LiveRangeCalc.cpp b/llvm/lib/CodeGen/LiveRangeCalc.cpp
index f7d9e5c44ac2e5..e325e77189a6fa 100644
--- a/llvm/lib/CodeGen/LiveRangeCalc.cpp
+++ b/llvm/lib/CodeGen/LiveRangeCalc.cpp
@@ -208,7 +208,7 @@ bool LiveRangeCalc::findReachingDefs(LiveRange &LR, MachineBasicBlock &UseMBB,
#ifndef NDEBUG
if (MBB->pred_empty()) {
- MBB->getParent()->verify();
+ MBB->getParent()->verify(nullptr, nullptr, &errs());
errs() << "Use of " << printReg(PhysReg, MRI->getTargetRegisterInfo())
<< " does not have a corresponding definition on every path:\n";
const MachineInstr *MI = Indexes->getInstructionFromIndex(Use);
@@ -223,7 +223,7 @@ bool LiveRangeCalc::findReachingDefs(LiveRange &LR, MachineBasicBlock &UseMBB,
for (MCRegAliasIterator Alias(PhysReg, TRI, false); !IsLiveIn && Alias.isValid(); ++Alias)
IsLiveIn = MBB->isLiveIn(*Alias);
if (!IsLiveIn) {
- MBB->getParent()->verify();
+ MBB->getParent()->verify(nullptr, nullptr, &errs());
errs() << "The register " << printReg(PhysReg, TRI)
<< " needs to be live in to " << printMBBReference(*MBB)
<< ", but is missing from the live-in list.\n";
More information about the llvm-commits
mailing list