[PATCH] D83923: [MachineOutliner][AArch64] Fix for noreturn functions

Puyan Lotfi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 21 15:35:53 PDT 2020


plotfi marked 5 inline comments as done.
plotfi added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:6212
+      erase_if(RepeatedSequenceLocs, [](outliner::Candidate &C) {
+        if (std::any_of(C.front(), C.back(),
+                        [](const MachineInstr &MI) { return MI.isCall(); })) {
----------------
paquette wrote:
> maybe use llvm's `any_of` from STLExtras?
llvm::any_of requires a begin and end not a front and back :-/


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83923





More information about the llvm-commits mailing list