This is an archive of the discontinued LLVM Phabricator instance.

[GISel] Fix types of operands of G_INDEXED_*
Needs ReviewPublic

Authored by RemiSEGARD on Feb 14 2023, 3:16 AM.

Details

Summary

The last operand of these instructions was "unknown", when writing
patterns for them. It ends up testing the type of the operand but it
would always fail as that operand is supposed to be an immediate inside
the instruction.
Moreover, G_INDEXED_STORE had a ptype as its offset type, it makes it
incorrect and prevents correct pattern checking to be generated as it
would be checking for a pointer on its offset operand.

Diff Detail

Event Timeline

RemiSEGARD created this revision.Feb 14 2023, 3:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2023, 3:16 AM
Herald added a subscriber: arphaman. · View Herald Transcript
RemiSEGARD requested review of this revision.Feb 14 2023, 3:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2023, 3:16 AM

Fix instruction descriptions in test