File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39
39
#include " common/shaderOverride.hpp"
40
40
#include " common/CompilerStatsUtils.hpp"
41
41
#include " inc/common/sku_wa.h"
42
+ #include < llvm/ADT/Statistic.h>
42
43
#include < iStdLib/utility.h>
43
44
#include < iostream>
44
45
#include < fstream>
@@ -59,6 +60,12 @@ This file defines the CEncoder class which is used to generate CISA instructions
59
60
static const unsigned int g_cScratchSpaceMsglimit = (128 * 1024 );
60
61
using namespace llvm ;
61
62
63
+ #define DEBUG_TYPE " cisa-builder"
64
+
65
+ STATISTIC (SimdSize8, " Number of shader(s) with SIMD8" );
66
+ STATISTIC (SimdSize16, " Number of shader(s) with SIMD16" );
67
+ STATISTIC (SimdSize32, " Number of shader(s) with SIMD32" );
68
+
62
69
namespace IGC
63
70
{
64
71
inline VISA_Exec_Size visaExecSize (SIMDMode width)
@@ -5032,14 +5039,17 @@ namespace IGC
5032
5039
if (m_program->m_dispatchSize == SIMDMode::SIMD8)
5033
5040
{
5034
5041
MEM_SNAPSHOT (IGC::SMS_AFTER_vISACompile_SIMD8);
5042
+ SimdSize8++;
5035
5043
}
5036
5044
else if (m_program->m_dispatchSize == SIMDMode::SIMD16)
5037
5045
{
5038
5046
MEM_SNAPSHOT (IGC::SMS_AFTER_vISACompile_SIMD16);
5047
+ SimdSize16++;
5039
5048
}
5040
5049
else if (m_program->m_dispatchSize == SIMDMode::SIMD32)
5041
5050
{
5042
5051
MEM_SNAPSHOT (IGC::SMS_AFTER_vISACompile_SIMD32);
5052
+ SimdSize32++;
5043
5053
}
5044
5054
5045
5055
if (m_program->m_dispatchSize == SIMDMode::SIMD16)
You can’t perform that action at this time.
0 commit comments