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 ccd35e5 commit a0f0b23Copy full SHA for a0f0b23
llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.cpp
@@ -256,13 +256,6 @@ AMDGPUResourceUsageAnalysisImpl::analyzeResourceUsage(
256
257
const Function *Callee = getCalleeFunction(*CalleeOp);
258
259
- // Avoid crashing on undefined behavior with an illegal call to a
260
- // kernel. If a callsite's calling convention doesn't match the
261
- // function's, it's undefined behavior. If the callsite calling
262
- // convention does match, that would have errored earlier.
263
- if (Callee && AMDGPU::isEntryFunctionCC(Callee->getCallingConv()))
264
- report_fatal_error("invalid call to entry function");
265
-
266
auto isSameFunction = [](const MachineFunction &MF, const Function *F) {
267
return F == &MF.getFunction();
268
};
0 commit comments