This is an archive of the discontinued LLVM Phabricator instance.

[msan] Set cmpxchg shadow precisely
ClosedPublic

Authored by stephan.yichao.zhao on Feb 18 2021, 8:41 PM.

Details

Summary

In terms of https://llvm.org/docs/LangRef.html#cmpxchg-instruction,
the return type of chmpxchg is a pair {ty, i1}, while I think we
only wanted to set the shadow for the address 0th op, and it has type
ty.

Diff Detail

Event Timeline

stephan.yichao.zhao requested review of this revision.Feb 18 2021, 8:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 18 2021, 8:41 PM
eugenis accepted this revision.Feb 19 2021, 11:47 AM

LGTM
Nice catch!

This revision is now accepted and ready to land.Feb 19 2021, 11:47 AM
This revision was landed with ongoing or failed builds.Feb 19 2021, 12:24 PM
This revision was automatically updated to reflect the committed changes.