This is an archive of the discontinued LLVM Phabricator instance.

[EarlyCSE] Fix crash when optimizing masked loads/stores
ClosedPublic

Authored by frasercrmck on Jan 12 2023, 7:45 AM.

Details

Summary

With opaque pointers, it is possible for EarlyCSE to encounter masked
load/store intrinsics which access the same pointer value but with
different incompatible types. These cannot form valid replacements
(without explicit casting, which we don't yet do even for regular
load/store instructions) so should be prevented.

Diff Detail

Event Timeline

frasercrmck created this revision.Jan 12 2023, 7:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 7:45 AM
frasercrmck requested review of this revision.Jan 12 2023, 7:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 7:45 AM
nikic accepted this revision.Jan 12 2023, 7:49 AM

LGTM

This revision is now accepted and ready to land.Jan 12 2023, 7:49 AM
This revision was landed with ongoing or failed builds.Jan 12 2023, 9:34 AM
This revision was automatically updated to reflect the committed changes.