[PATCH] D81461: GlobalISel: Fix double printing new instructions in legalizer

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 06:00:00 PDT 2020


arsenm added a comment.

Actually I think this isn't the main source of double printing. The same observer seems to get called twice:

First through this:
#0  llvm::GISelObserverWrapper::createdInstr (this=0x7fffffffb658, MI=...)
#1  0x0000000003b9ca51 in llvm::GISelObserverWrapper::MF_HandleInsertion (this=0x7fffffffb658, MI=...)
#2  0x00000000055f703e in llvm::MachineFunction::handleInsertion (this=0x792f510, MI=...)

And then later this:
#0  (anonymous namespace)::LegalizerWorkListManager::createdInstr (this=0x7fffffffb6e0, MI=...)
#1  0x0000000003b9cb88 in llvm::GISelObserverWrapper::createdInstr (this=0x7fffffffb658, MI=...)
#2  0x0000000003b9ca51 in llvm::GISelObserverWrapper::MF_HandleInsertion (this=0x7fffffffb658, MI=...)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81461/new/

https://reviews.llvm.org/D81461





More information about the llvm-commits mailing list