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
Paths
| Differential D76215
[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: Add InstCombine rule to transform intrinsic to undef operation. This is a follow-up for D76116
Diff Detail Event TimelineThis revision is now accepted and ready to land.Mar 16 2020, 3:32 PM Closed by commit rG80c351cdb6ea: [InstCombine] Transform to undef incorrect atomic unordered mem intrinsics (authored by skatkov). · Explain WhyMar 16 2020, 8:44 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 250494 llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/element-atomic-memintrins.ll
|