This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Affine] Mark affine.min and affine.max as NoSideffect.
AbandonedPublic

Authored by herhut on Feb 13 2020, 4:33 AM.

Details

Summary

The operation has no sideffects and it was probably just an oversight
that the trait is missing.

Diff Detail

Unit TestsFailed

Event Timeline

herhut created this revision.Feb 13 2020, 4:33 AM

Noticed this because the loop.parallel transformation bailed out on these.

herhut updated this revision to Diff 244388.Feb 13 2020, 4:35 AM

Commit message fixed.

Weird, AffineMinOp and AffineMaxOp do have the trait, they are just below (I asked @OuHangKresnik to add them in one of recent commits). Can we explore more what's the problem with loop.parallel not seing the trait?

herhut abandoned this revision.Feb 13 2020, 6:03 AM

The answer is simple. I did not rebase :)