[llvm] [AMDGPU][SplitModule] Do not create empty modules (PR #135761)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 05:04:23 PDT 2025
================
@@ -1500,10 +1511,12 @@ static void splitAMDGPUModule(
return false;
}
- // Everything else goes in the first partition.
- return needsConservativeImport(GV) || PID == 0;
+ // Everything else goes in the first non-empty module we create.
+ return needsConservativeImport(GV) || ImportAllGVs;
----------------
arsenm wrote:
Swap conditions for the trivial condition first
https://github.com/llvm/llvm-project/pull/135761
More information about the llvm-commits
mailing list