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
[mlir] Fix calculateMemoryRequirements in MemRefToSPIRV.
There was an early return in calculateMemoryRequirements
that looked explicitly for alignment and only set the alignment attribute.
However, this was not correct for the following reasons:
* Alignment was set only if both the alignment and the
memory_access attributes were both present in the memref operation,
without handling the case when only the alignment was exclusively
present.
* In the case alignment and memory_access attributes were both present,
the memory_access attribute would not be updated to aligned if
the memory_access attribute was not marked aligned.
* In the case alignment and memory_access attributes were both present,
other memory requirements (e.g., non_temporal) would not be added
as attributes.
0 commit comments