make bufferload smarter
@@ -1108,12 +1108,14 @@ class Solution:
packedC0 = len(state["PackedC0Indices"])>1
packedC1 = len(state["PackedC1Indices"])>1
+ bufferLoad = state["BufferLoad"] and state["KernelLanguage"] == "Assembly"
+
#These modes only work under certain conditions, apply them here:
# - The "NoLoad" loop is only generated if PrefetchGlobalRead>0
# - And Suppress does not work if GSU>1 for some reason
- state["SuppressNoLoadLoop"] &= (state["BufferLoad"] and state["PrefetchGlobalRead"] and (state["GlobalSplitU"]==1))
+ state["SuppressNoLoadLoop"] &= (bufferLoad and state["PrefetchGlobalRead"] and (state["GlobalSplitU"]==1))
# Pointer swap only used if PGR=1 - so set ExpandPointerSwap=0 here
- state["ExpandPointerSwap"] &= (state["BufferLoad"] and state["PrefetchGlobalRead"])
+ state["ExpandPointerSwap"] &= (bufferLoad and state["PrefetchGlobalRead"])
#print("PackedC0Indices", state["PackedC0Indices"])
#print("PackedC1Indices", state["PackedC1Indices"])
