This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Drop original type pointeriness in minScalarSameAs
ClosedPublic

Authored by arsenm on Jul 22 2020, 7:17 AM.

Details

Summary

It is not useful to report WidenScalar for a pointer value, so always
report a scalar value in the target size. This allows using this to
clamp the scalar operand to the pointer size in operations like
G_PTR_ADD or G_PTRMASK.

Diff Detail

Event Timeline

arsenm created this revision.Jul 22 2020, 7:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2020, 7:17 AM
aemerson accepted this revision.Jul 23 2020, 4:58 PM

LGTM.

This revision is now accepted and ready to land.Jul 23 2020, 4:58 PM