This is an archive of the discontinued LLVM Phabricator instance.

[Reg2Mem] add support for the new pass manager
ClosedPublic

Authored by tammela on Nov 7 2020, 9:29 AM.

Details

Summary

This patch refactors the pass to accomodate the new pass manager
boilerplate.

Diff Detail

Event Timeline

tammela created this revision.Nov 7 2020, 9:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2020, 9:29 AM
tammela requested review of this revision.Nov 7 2020, 9:29 AM

Nice. Looks very sensible. I've added some folks who may know more.

llvm/include/llvm/Transforms/Scalar/Reg2Mem.h
2

Can you line this up a little.

llvm/test/Transforms/Reg2Mem/crash.ll
1

Can you add an explicit new pass manager run line

tammela updated this revision to Diff 303657.Nov 7 2020, 10:50 AM

Add test case, fix line column

aeubanks accepted this revision.Nov 7 2020, 1:10 PM

2 nits, otherwise lgtm

llvm/include/llvm/Transforms/Scalar/Reg2Mem.h
23

delete?

llvm/test/Transforms/Reg2Mem/crash.ll
1–2

use -passes=reg2mem instead

This revision is now accepted and ready to land.Nov 7 2020, 1:10 PM
This revision was landed with ongoing or failed builds.Nov 8 2020, 3:15 AM
This revision was automatically updated to reflect the committed changes.