This is an archive of the discontinued LLVM Phabricator instance.

[LoopVectorize] Add tests with reductions that are stored in invariant address
ClosedPublic

Authored by igor.kirillov on Jan 13 2022, 5:05 AM.

Details

Summary

This patch adds tests for functionality that is to be implemented in D110235.

Diff Detail

Event Timeline

igor.kirillov requested review of this revision.Jan 13 2022, 5:05 AM
igor.kirillov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2022, 5:05 AM
fhahn accepted this revision.Jan 24 2022, 1:03 AM

LGTM, thanks! A few additional suggestions inline.

llvm/test/Transforms/LoopVectorize/reduction-with-invariant-store.ll
2

Requiring other passes makes the test more fragile. At least in the current version, there should be no need to require extra cleanup passes.

Also, it might be good to use the new pass manager syntax (-passes="")

10

FWIW I don't think the pseudo code here adds much, especially because there is a textual comment. and the IR is very compact. Just a personal preference/opinion though.

319

might be better to just drop indvars.

329

nit: might be slightly simpler to call this exit.

335

stray new line.

This revision is now accepted and ready to land.Jan 24 2022, 1:03 AM

Final updates

fhahn added a comment.Jan 24 2022, 5:35 AM

Final updates

Thanks for the updates. Do you have commit access? if not, I can land this on your behalf. In that case, please provide name+ email to use as author in the commit.

igor.kirillov marked 5 inline comments as done.Jan 24 2022, 6:44 AM

@fhahn, yes, I have access, I'll submit changes in a moment.

This revision was landed with ongoing or failed builds.Jan 24 2022, 1:29 PM
This revision was automatically updated to reflect the committed changes.