Skip to content

Commit b299854

Browse files
committed
[AMDGPU] Fix uncaught changes made by AMDGPUPreloadKernelArgumentsPass
1 parent ac8f0bb commit b299854

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUPreloadKernelArguments.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ static bool markKernelArgsAsInreg(Module &M, const TargetMachine &TM) {
341341
Changed |= NumPreloadedExplicitArgs > 0;
342342
}
343343

344+
Changed |= !FunctionsToErase.empty();
344345
// Erase cloned functions if we needed to update the kernel signature to
345346
// support preloading hidden kernel arguments.
346347
for (auto *F : FunctionsToErase)

0 commit comments

Comments
 (0)