You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JitStressCLR JIT issues involving JIT internal stress modesarch-arm32area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-outerloopBlocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runsos-linuxLinux OS (any supported distro)
Slightly smaller repro with arm altjit and JitStress=2, JitStressRegs=2:
usingSystem.Numerics;usingSystem.Runtime.CompilerServices;publicclassProgram{publicstaticvoidMain(){Matrix<float>foo=default;foo=foo*foo;}publicstructMatrix<T>whereT:struct{privateT[]_data;publicintxCount,yCount;privateint_xTileCount;privateint_yTileCount;privateint_flattenedCount;privatestaticreadonlyints_tileSize=Vector<T>.Count;publicMatrix(inttheXCount,inttheYCount){// Round up the dimensions so that we don't have to deal with remnants.intvectorCount=Vector<T>.Count;_xTileCount=(theXCount+vectorCount-1)/vectorCount;_yTileCount=(theYCount+vectorCount-1)/vectorCount;xCount=_xTileCount*vectorCount;yCount=_yTileCount*vectorCount;_flattenedCount=xCount*yCount;_data=newT[_flattenedCount];}[MethodImpl(MethodImplOptions.NoInlining)]publicstaticvoidTranspose(Matrix<T>m,intxStart,intyStart,Vector<T>[]result){}publicstaticMatrix<T>operator*(Matrix<T>left,Matrix<T>right){Matrix<T>result=newMatrix<T>(left.xCount,right.yCount);Vector<T>[]temp=newVector<T>[s_tileSize];T[]temp2=newT[s_tileSize];Transpose(right,0,0,temp);Vector<T>leftTileRow=newVector<T>(left._data,left.yCount);for(intn=0;n<s_tileSize;n++){temp2[n]=Vector.Dot(leftTileRow,temp[n]);}newVector<T>(result._data,result.yCount);returnresult;}}}
// GC info for all argument registers will be cleared in caller
genCheckConsumeNode(putArgNode);
}
We can either go back to this or update GC info as part of consuming the arg split node. I am more inclined to do the latter to put it in line with how we do GC reporting for other arg nodes.
JitStressCLR JIT issues involving JIT internal stress modesarch-arm32area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-outerloopBlocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runsos-linuxLinux OS (any supported distro)
Activity
EgorBo commentedon Feb 15, 2022
cc @dotnet/jit-contrib
echesakov commentedon Feb 15, 2022
I have seen this in #64857 - bisecting now
BruceForstall commentedon Feb 15, 2022
Note that these are all JitStressRegs=2/3
echesakov commentedon Feb 15, 2022
Looks that these asserts were changed in 3fc8b09 (#63763) and they were failing since then.
Here is how to reproduce the issue
cc @jakobbotsch
Revert genCall register trash changes from CFG PR
jakobbotsch commentedon Feb 16, 2022
Slightly smaller repro with arm altjit and JitStress=2, JitStressRegs=2:
jakobbotsch commentedon Feb 16, 2022
In the stress mode we end up with a series of spills/reload around setting up call arguments:
It looks like
genConsumeArgSplitStructassumes thatgenCallwill handle clearing the GC info:runtime/src/coreclr/jit/codegenlinear.cpp
Lines 1818 to 1829 in 87ab863
We can either go back to this or update GC info as part of consuming the arg split node. I am more inclined to do the latter to put it in line with how we do GC reporting for other arg nodes.
Clear GC info when consuming GT_PUTARG_SPLIT nodes
Clear GC info when consuming GT_PUTARG_SPLIT nodes (#65432)