This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix fold-memref-subview-ops for affine.load/store
ClosedPublic

Authored by bondhugula on Feb 9 2022, 7:19 PM.

Details

Summary

Fix fold-memref-subview-ops for affine.load/store. We need to expand out
the affine apply on its operands.

Diff Detail

Event Timeline

bondhugula created this revision.Feb 9 2022, 7:19 PM
bondhugula requested review of this revision.Feb 9 2022, 7:19 PM
mravishankar accepted this revision.Feb 9 2022, 11:31 PM
This revision is now accepted and ready to land.Feb 9 2022, 11:31 PM
tpopp added a subscriber: tpopp.Feb 10 2022, 1:48 AM

Hi,

I am reverting this change as it has a stack-use-after-scope error. I suspect this is due to the call to expandAffineMap returning a SmallVector which is then referenced with the ValueRange indices inside of the if block and then used outside.

tpopp added a comment.Feb 10 2022, 1:51 AM

Clang documentation for ASAN, as I feel like everyone has different flows for using it: https://clang.llvm.org/docs/AddressSanitizer.html