This is an archive of the discontinued LLVM Phabricator instance.

[VE] Add +vpu attribute
ClosedPublic

Authored by simoll on Oct 30 2020, 8:13 AM.

Details

Summary

+vpu controls whether VEISelLowering adds any vregs.
This defaults to -vpu to have scalar code generation out of the box.
We bring up vector isel under the +vpu flag. Once vector isel is stable we switch to +vpu and advertise vregs and vops in TTI.

Diff Detail

Event Timeline

simoll created this revision.Oct 30 2020, 8:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 30 2020, 8:13 AM
simoll requested review of this revision.Oct 30 2020, 8:13 AM
kaz7 added inline comments.Oct 30 2020, 10:20 PM
llvm/lib/Target/VE/VETargetTransformInfo.h
43

Modifications after this line look like duplicated from https://reviews.llvm.org/D90462. Otherwise, LGTM.

simoll added inline comments.Nov 2 2020, 12:41 AM
llvm/lib/Target/VE/VETargetTransformInfo.h
43

This patch depends on D90462 - you see both diffs in this Diff.
Can we commit D90462 and then rebase this patch onto upstream?

kaz7 added inline comments.Nov 2 2020, 6:13 AM
llvm/lib/Target/VE/VETargetTransformInfo.h
43

I see. I was wondering why.. Now I understand it. Thanks!

simoll updated this revision to Diff 302583.Nov 3 2020, 7:49 AM
  • Removed unrelated changes.
  • Added feature test.
kaz7 accepted this revision.Nov 4 2020, 3:39 AM

LGTM. Thank you for removing unrelated changes.

This revision is now accepted and ready to land.Nov 4 2020, 3:39 AM
This revision was landed with ongoing or failed builds.Nov 4 2020, 3:42 AM
This revision was automatically updated to reflect the committed changes.