We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f22d588 commit b863f78Copy full SHA for b863f78
llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.cpp
@@ -261,13 +261,6 @@ AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage(
261
262
const Function *Callee = getCalleeFunction(*CalleeOp);
263
264
- // Avoid crashing on undefined behavior with an illegal call to a
265
- // kernel. If a callsite's calling convention doesn't match the
266
- // function's, it's undefined behavior. If the callsite calling
267
- // convention does match, that would have errored earlier.
268
- if (Callee && AMDGPU::isEntryFunctionCC(Callee->getCallingConv()))
269
- report_fatal_error("invalid call to entry function");
270
-
271
auto isSameFunction = [](const MachineFunction &MF, const Function *F) {
272
return F == &MF.getFunction();
273
};
0 commit comments