This is an archive of the discontinued LLVM Phabricator instance.

[NewPM][NVPTX] Port NVPTX opt passes
ClosedPublic

Authored by aeubanks on Dec 29 2020, 9:00 PM.

Details

Summary

There are only two used in the IR optimization pipeline.
Port these and add them to the default pipeline.

Similar to https://reviews.llvm.org/D93863.

I added -mtriple to some tests since under the new PM, the passes are
only available when the TargetMachine is specified.

Diff Detail

Event Timeline

aeubanks created this revision.Dec 29 2020, 9:00 PM
aeubanks requested review of this revision.Dec 29 2020, 9:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 29 2020, 9:00 PM
aeubanks edited the summary of this revision. (Show Details)Dec 29 2020, 9:05 PM
rnk accepted this revision.Jan 7 2021, 2:33 PM

lgtm with nit

llvm/lib/Target/NVPTX/NVVMReflect.cpp
77

static?

This revision is now accepted and ready to land.Jan 7 2021, 2:33 PM
aeubanks updated this revision to Diff 315257.Jan 7 2021, 3:11 PM

rebase
make function static

This revision was landed with ongoing or failed builds.Jan 7 2021, 3:14 PM
This revision was automatically updated to reflect the committed changes.