[PATCH] D157750: Properly handle -fsplit-machine-functions for fatbinary compilation

Snehasish Kumar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 11 13:30:50 PDT 2023


snehasish added a subscriber: dhoekwater.
snehasish added inline comments.


================
Comment at: llvm/lib/CodeGen/TargetPassConfig.cpp:1278
     }
-    addPass(createMachineFunctionSplitterPass());
+    if (TM->getTargetTriple().isX86())
+      addPass(createMachineFunctionSplitterPass());
----------------
Can you coordinate with @dhoekwater ? He has some patches in flight for AArch64. 

I think D157157 is the one which modifies the same logic.


================
Comment at: llvm/test/CodeGen/X86/mfs-triple.ll:8
+
+define void @foo4(i1 zeroext %0, i1 zeroext %1) nounwind {
+  br i1 %0, label %3, label %7
----------------
Any reason why we can't use the bitcode already in test/CodeGen/machine-function-splitter.ll? (Going to be moved to test/Generic/machine-function-splitter.ll in D157563)

IMO we can just reuse the basic test and add these run and check lines.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157750



More information about the cfe-commits mailing list