[llvm] r272209 - [RegBankSelect] Remove a debug print of a potentially dead instruction.
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 14:55:29 PDT 2016
Author: qcolombet
Date: Wed Jun 8 16:55:29 2016
New Revision: 272209
URL: http://llvm.org/viewvc/llvm-project?rev=272209&view=rev
Log:
[RegBankSelect] Remove a debug print of a potentially dead instruction.
For complex rewrittings, which do not occur currently, the related
machine instruction may have been deleted in the process. Therefore, do
not try to print it after the mapping is applied.
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp?rev=272209&r1=272208&r2=272209&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/RegBankSelect.cpp Wed Jun 8 16:55:29 2016
@@ -529,9 +529,9 @@ void RegBankSelect::assignInstr(MachineI
DEBUG(dbgs() << "Mapping: " << BestMapping << '\n');
+ // After this call, MI may not be valid anymore.
+ // Do not use it.
applyMapping(MI, BestMapping, RepairPts);
-
- DEBUG(dbgs() << "Assigned: " << MI);
}
bool RegBankSelect::runOnMachineFunction(MachineFunction &MF) {
More information about the llvm-commits
mailing list