@@ -820,7 +820,7 @@ VISA_PredOpnd* CEncoder::GetFlagOperand(const SFlag& flag)
820820    VISA_PREDICATE_STATE predState = (flag.invertFlag )
821821        ? PredState_INVERSE : PredState_NO_INVERSE;
822822    VISA_PREDICATE_CONTROL predCtrl = PRED_CTRL_NON;
823-      
823+ 
824824    switch  (flag.mode )
825825    {
826826    case  EPRED_ALL:     predCtrl = PRED_CTRL_ALL;   break ;
@@ -889,7 +889,7 @@ Common_VISA_EMask_Ctrl CEncoder::GetAluEMask(CVariable* dst)
889889                noMask = true ;
890890            }
891891        }
892-     }  
892+     }
893893
894894    return  ConvertMaskToVisaType (mask, noMask);
895895}
@@ -1515,7 +1515,7 @@ void CEncoder::LogicOp(
15151515        if (src1 != NULL )
15161516            src1Dcl = src1->visaPredVariable ;
15171517
1518-         //  Try to use NOT instruction for predicate, we won't have phi on  
1518+         //  Try to use NOT instruction for predicate, we won't have phi on
15191519        //  predicate since Legalization pass convert i1 phi to i32.
15201520        if  (opcode == ISA_NOT)
15211521            SetNoMask ();
@@ -2424,7 +2424,7 @@ void CEncoder::Gather4Inst(
24242424    if  (!isIdxLT16)
24252425    {
24262426        uint16_t  aoffimmiVal = (uint16_t )offset->GetImmediateValue () | BIT (15 );
2427-         V (vKernel->CreateVISAImmediate (aoffimmi, &aoffimmiVal, ISA_TYPE_UW));     
2427+         V (vKernel->CreateVISAImmediate (aoffimmi, &aoffimmiVal, ISA_TYPE_UW));
24282428    }
24292429
24302430    V (vKernel->AppendVISA3dGather4 (
@@ -2498,7 +2498,7 @@ void CEncoder::Fence(bool CommitEnable,
24982498        ( L3_Flush_Constant_Data << 3  ) |
24992499        ( L3_Flush_RW_Data << 4  ) |
25002500        ( (!Global_Mem_Fence) << 5  ) | //  bit 5: 1 -- local, 0 -- global
2501-         ( L1_Flush_Constant_Data << 6  ) |  
2501+         ( L1_Flush_Constant_Data << 6  ) |
25022502        ( SWFence << 7  ) |
25032503        ( CommitEnable << 0  );
25042504
@@ -3472,18 +3472,18 @@ void CEncoder::InitEncoder( bool canAbortOnSpill )
34723472    SetVISAWaTable (m_program->m_Platform ->getWATable ());
34733473
34743474    bool  enableVISADump = IGC_IS_FLAG_ENABLED (EnableVISASlowpath) || IGC_IS_FLAG_ENABLED (ShaderDumpEnable);
3475-     V (CreateVISABuilder (vbuilder, vISA_3D, enableVISADump ? CM_CISA_BUILDER_BOTH : CM_CISA_BUILDER_GEN,  
3475+     V (CreateVISABuilder (vbuilder, vISA_3D, enableVISADump ? CM_CISA_BUILDER_BOTH : CM_CISA_BUILDER_GEN,
34763476        VISAPlatform, params.size (), params.data (), &m_WaTable));
34773477
3478-     //  Set up options. This must be done before creating any variable/instructions  
3478+     //  Set up options. This must be done before creating any variable/instructions
34793479    //  since some of the options affect IR building.
34803480
34813481    if  (IGC_IS_FLAG_ENABLED (ForceNoFP64bRegioning))
34823482    {
34833483        vbuilder->SetOption (vISA_forceNoFP64bRegioning, true );
34843484    }
34853485
3486-     if  (context->type  == ShaderType::OPENCL_SHADER && context->m_floatDenormMode32  == FLOAT_DENORM_RETAIN &&  
3486+     if  (context->type  == ShaderType::OPENCL_SHADER && context->m_floatDenormMode32  == FLOAT_DENORM_RETAIN &&
34873487        context->m_floatDenormMode64  == FLOAT_DENORM_RETAIN)
34883488    {
34893489        vbuilder->SetOption (vISA_hasRNEandDenorm, true );
@@ -3736,7 +3736,7 @@ void CEncoder::InitEncoder( bool canAbortOnSpill )
37363736    {
37373737        /*  Some tools only use 32bits hash, to maintain compatibility
37383738        across lot of unknown tool chains doing Compare for only LowerPart 
3739-         */    
3739+         */  
37403740        if  (IGC_GET_FLAG_VALUE (ShaderDebugHashCode) == (DWORD)context->hash .getAsmHash ())
37413741        {
37423742            vbuilder->SetOption (vISA_setStartBreakPoint, true );
@@ -4216,9 +4216,9 @@ void CEncoder::Compile()
42164216    {
42174217        context->m_retryManager .SetSpillSize (jitInfo->numGRFSpillFill );
42184218        m_program->m_spillSize  = jitInfo->numGRFSpillFill ;
4219-         m_program->m_spillCost  =  
4219+         m_program->m_spillCost  =
42204220            float (jitInfo->numGRFSpillFill ) / jitInfo->numAsmCount ;
4221-          
4221+ 
42224222        context->m_retryManager .numInstructions  = jitInfo->numAsmCount ;
42234223    }
42244224    COMPILER_TIME_END (m_program->GetContext (), TIME_CG_vISACompile);
@@ -4269,9 +4269,7 @@ void CEncoder::Compile()
42694269        MEM_SNAPSHOT ( IGC::SMS_AFTER_vISACompile_SIMD32 );
42704270    }
42714271
4272-     if  ((context->type  == ShaderType::PIXEL_SHADER ||
4273-         context->type  == ShaderType::COMPUTE_SHADER )&&
4274-         m_program->m_dispatchSize  == SIMDMode::SIMD16)
4272+     if  (m_program->m_dispatchSize  == SIMDMode::SIMD16)
42754273    {
42764274        uint sendStallCycle = 0 ;
42774275        uint staticCycle = 0 ;
0 commit comments