diff --git a/visa/IsaVerification.cpp b/visa/IsaVerification.cpp index b0e364d71097..de7b0550ff40 100644 --- a/visa/IsaVerification.cpp +++ b/visa/IsaVerification.cpp @@ -357,6 +357,16 @@ void vISAVerifier::verifyVariableDecl(unsigned declID) { break; // Prevent gcc warning } + REPORT_HEADER(options, + !var->dcl->getAddressed() || + var->getSize() < irBuilder->kernel.getNumRegTotal() * + irBuilder->kernel.getGRFSize(), + "V%d (size = %d bytes) is indirectly addressed and spans " + "complete GRF file of %d GRFs. This cannot be allocated by " + "RA.", + declID + numPreDefinedVars, var->getSize(), + irBuilder->kernel.getNumRegTotal() * + irBuilder->kernel.getGRFSize()); REPORT_HEADER(options, var->num_elements != 0 && var->num_elements <= irBuilder->getMaxVariableSize(),