[PATCH] D137905: [GlobalISel] Add new G_INVOKE_REGION_START/END instructions to fix an EH bug
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 15:11:08 PST 2022
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/MachineBasicBlock.cpp:258
+MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminatorForward() {
+ iterator I = begin(), E = end();
+ while (I != E && !I->isTerminator())
----------------
aemerson wrote:
> paquette wrote:
> > paquette wrote:
> > > `find_if`?
> > Should we check for debug instructions + skip them here like in `getFirstTerminator()`, or is that not necessary?
> I don't think it's necessary since debug instructions would never be terminators.
getFirstTerminator does check for them, so I'm not sure what the rule is for debug instructions
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137905/new/
https://reviews.llvm.org/D137905
More information about the llvm-commits
mailing list