[PATCH] D53765: [RFC prototype] Implementation of asm-goto support in LLVM

Bill Wendling via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 14 12:59:11 PST 2019


void added inline comments.


================
Comment at: lib/CodeGen/AsmPrinter/AsmPrinter.cpp:3006-3007
+  if (AGI != Pred->end()) {
+    // FIXME: this is crude, but the asm-goto sometimes seems to be the second-
+    // to-last instruction. Find a prettier way to check this.
+    const auto &AG = *AGI;
----------------
This comment and the FIXME above it have me confused. Isn't the point of `callbr` to convert *all* asm goto statements into `callbr`? If so, then they should automatically be at the end of the basic block. What are the situations where it won't follow this?


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

https://reviews.llvm.org/D53765





More information about the llvm-commits mailing list