Commit f1085758 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Do not read/write databuffer as whole and contiguous data block when field...

Do not read/write databuffer as whole and contiguous data block when field layout trafo was performed.
parent 9817a769
......@@ -15,6 +15,7 @@ trait IR_Iostream {
def isAccessForWholeBlockAllowed(buf : IR_DataBuffer, conditionSpecified : Boolean) : IR_Expression = {
conditionSpecified AndAnd // condition specified?
!buf.fieldLayoutTransformed AndAnd // was field layout transformed?
buf.accessWithoutExclusion AndAnd // is any layer excluded (e.g. ghost)?
!(buf.numDimsData > buf.numDimsGrid) AndAnd // do we write a higher dim. datatype?
!buf.accessPattern.isInstanceOf[IR_SWEAccessPattern] // compatible with access pattern?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment