[PATCH] D139970: [llvm][CallBrPrepare] use SSAUpdater to use intrinsic value

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 14:12:43 PST 2022


nickdesaulniers created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Now that we've inserted a call to an intrinsic, we need to update
certain previous uses of CallBrInst values to use the value of this
intrinsic instead.

There are 3 cases to handle:

1. The @llvm.callbr.landingpad.<type>() intrinsic call is in the same BasicBlock as the use of the callbr we're replacing.
2. The use is dominated by the direct destination.
3. The use is not dominated by the direct destination, and may or may not be dominated by the indirect destination.

Part 2c of
https://discourse.llvm.org/t/rfc-syncing-asm-goto-with-outputs-with-gcc/65453/8.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139970

Files:
  llvm/lib/CodeGen/CallBrPrepare.cpp
  llvm/test/CodeGen/AArch64/callbr-prepare.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139970.482625.patch
Type: text/x-patch
Size: 12338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221213/9bf69e16/attachment.bin>


More information about the llvm-commits mailing list