This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG][VP] Fix VP memory ops' EVL/Mask indices
ClosedPublic

Authored by frasercrmck on Sep 1 2021, 7:46 AM.

Details

Summary

This patch corrects the auto-generated EVL and Mask index positions of
the VP_LOAD/VP_STORE/VP_GATHER/VP_SCATTER nodes.

Diff Detail

Event Timeline

frasercrmck created this revision.Sep 1 2021, 7:46 AM
frasercrmck requested review of this revision.Sep 1 2021, 7:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2021, 7:46 AM
frasercrmck added a project: Restricted Project.Sep 1 2021, 7:47 AM

I'm not sure there's currently a way of testing this. I found it while working on some other VP patches.

simoll added a comment.Sep 1 2021, 8:59 AM

Apart from that LGTM. We don't currently test the SDNode layer directly.. only indirectly through isel

llvm/include/llvm/IR/VPIntrinsics.def
213–214

Could you add a comment here that describes what the SDNode operands are? Same for the others below.

  • add SDNode operand comments
frasercrmck marked an inline comment as done.Sep 1 2021, 9:18 AM
frasercrmck added inline comments.
llvm/include/llvm/IR/VPIntrinsics.def
213–214

Aye good idea - done.

simoll accepted this revision.Sep 1 2021, 10:41 AM
This revision is now accepted and ready to land.Sep 1 2021, 10:41 AM
This revision was automatically updated to reflect the committed changes.
frasercrmck marked an inline comment as done.