This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG][VP] Fix MemSDNode::getBasePtr

Authored by frasercrmck on Sep 6 2021, 2:45 AM.



Found while working on D108987. When interpreting VP nodes as
MemSDNode nodes, this function would return the incorrect indices.
This was due to VP_GATHER and having no "passthru", and both
VP_GATHER and VP_SCATTER having their mask operands *after* the base
pointer, unlike MGATHER and MSCATTER.

Diff Detail

Event Timeline

frasercrmck created this revision.Sep 6 2021, 2:45 AM
frasercrmck requested review of this revision.Sep 6 2021, 2:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 6 2021, 2:45 AM
This revision is now accepted and ready to land.Sep 6 2021, 10:55 AM
This revision was landed with ongoing or failed builds.Sep 7 2021, 2:04 AM
This revision was automatically updated to reflect the committed changes.