[PATCH] D69868: Allow "callbr" to return non-void values
Bill Wendling via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 7 15:51:24 PST 2020
void marked 5 inline comments as done.
void added inline comments.
================
Comment at: llvm/lib/CodeGen/MachineBasicBlock.cpp:1115-1116
+ if (Succ->hasAddressTaken())
+ if (auto *bb = Succ->getBasicBlock())
+ if (auto *cbr = dyn_cast<CallBrInst>(getBasicBlock()->getTerminator()))
+ if (cbr->getDefaultDest() != bb)
----------------
nickdesaulniers wrote:
> I think it may be worthwhile to swap these conditions with each other, too. It's highly unlikely the BB is terminated with a `CallBrInst`, yet highly likely the MBB refers to a BB.
Okay. No one likes this addition. I'm going to remove it and just check `IsInlineAsmBrIndirectTarget`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69868/new/
https://reviews.llvm.org/D69868
More information about the cfe-commits
mailing list