This is an archive of the discontinued LLVM Phabricator instance.

[Analysis] Fix isSafeToLoadUnconditionally handling of volatile.
ClosedPublic

Authored by efriedma on Jan 21 2019, 5:33 PM.

Details

Summary

A volatile operation cannot be used to prove an address points to normal memory. (LangRef was recently updated to state this explicitly.)

This issue was found by inspection; I think it's unlikely to show up in real code.

Diff Detail

Repository
rL LLVM

Event Timeline

efriedma created this revision.Jan 21 2019, 5:33 PM
hfinkel accepted this revision.Jan 21 2019, 5:50 PM

LGTM

This revision is now accepted and ready to land.Jan 21 2019, 5:50 PM
This revision was automatically updated to reflect the committed changes.