diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-06-08 21:55:29 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-06-08 21:55:29 +0000 |
commit | 9400bfbf4268a0ec53e7b045bceb37909fa8ab31 (patch) | |
tree | 066b50e0dbbc21b87c4dce71e2988f53a0dd21d7 /llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp | |
parent | 9f8e209c60f130cfb443ff2dbb9414d5a0b2d6de (diff) | |
download | bcm5719-llvm-9400bfbf4268a0ec53e7b045bceb37909fa8ab31.tar.gz bcm5719-llvm-9400bfbf4268a0ec53e7b045bceb37909fa8ab31.zip |
[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.
llvm-svn: 272209
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp index f5f4abf77e5..7b96c20542d 100644 --- a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp +++ b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp @@ -529,9 +529,9 @@ void RegBankSelect::assignInstr(MachineInstr &MI) { 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) { |