[llvm] [FinalizelSel] Re-scan the MachineFunction if we insert a new MBB by custom insertion (PR #96046)
Jianjian Guan via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 02:49:52 PDT 2024
jacquesguan wrote:
> I dug into this some more. The emitInstrWithCustomInsert interface dates back to a time when it was called from InstrEmitter.cpp as MachineInstrs were created from SelectionDAG. There was nothing later in the block. The MBB returned was used to reset the position for where future instructions should be inserted.
>
> Maybe a better interface today would return the iterator where to resume scanning.
Thanks, I will try this way.
https://github.com/llvm/llvm-project/pull/96046
More information about the llvm-commits
mailing list