[PATCH] D157063: [CodeGen] Make the MachineFunctionSplitter pass testable via MIR

Daniel Hoekwater via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 18:06:38 PDT 2023


dhoekwater created this revision.
dhoekwater added reviewers: shenhan, xur, snehasish, wenlei.
Herald added a subscriber: hiraditya.
Herald added a project: All.
dhoekwater requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Because the MachineFunctionSplitter pass isn't initialized in
`CodeGen.cpp`, running LLC with `--run-pass machine-function-splitter`
doesn't work. Adding it to the `initializeCodeGen` makes the function
splitting directly testable with `.mir` tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157063

Files:
  llvm/lib/CodeGen/CodeGen.cpp
  llvm/test/CodeGen/AArch64/machine-function-splitter.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157063.547071.patch
Type: text/x-patch
Size: 3711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230804/8d0b4c1e/attachment.bin>


More information about the llvm-commits mailing list