This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Transform to undef incorrect atomic unordered mem intrinsics
ClosedPublic

Authored by skatkov on Mar 16 2020, 1:00 AM.

Details

Summary

According to LangRef:
If len is not a positive integer multiple of element_size, then the behaviour of the intrinsic is undefined.

Add InstCombine rule to transform intrinsic to undef operation.

This is a follow-up for D76116

Diff Detail

Event Timeline

skatkov created this revision.Mar 16 2020, 1:00 AM
reames accepted this revision.Mar 16 2020, 3:32 PM

LGTM

This revision is now accepted and ready to land.Mar 16 2020, 3:32 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2020, 8:44 PM