[PATCH] D67868: [GlobalISel] Defer setting HasCalls on MachineFrameInfo to selection time.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 16:17:39 PDT 2019
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
LGTM. This also solves reporting calls for things lowered to libcalls
================
Comment at: llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:237-238
+ for (const auto &MI : MBB) {
+ const MCInstrDesc &MCID = TII->get(MI.getOpcode());
+ if ((MCID.isCall() && !MCID.isReturn()) ||
+ MI.isStackAligningInlineAsm()) {
----------------
You can check theses directly on MI
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67868/new/
https://reviews.llvm.org/D67868
More information about the llvm-commits
mailing list