Hi,
This patch fixes bug at https://bugs.llvm.org/show_bug.cgi?id=35108. Root cause is:
when building memory access, the subscripts for MultiDim Access are built in units of
element type in functions buildAccessMultiDim*, while for SingleDim Access are built in
units of bytes in function buildAccessSingleDim. Later in function updateDimensionality,
we need to update AccessRelation for multi-element access, ideally, the difference in
subscripts aforementioned needs to be considered. However, it's not and we always
handle it as in units of bytes.
This patch fixes the issue as well as adds a test case. Any comment?
Thanks,