This is an archive of the discontinued LLVM Phabricator instance.

LowerAtomic: Don't skip optnone functions; atomic still need lowering (PR34020)
ClosedPublic

Authored by hans on Aug 22 2017, 5:07 PM.

Details

Summary

The lowering isn't really an optimization, so optnone shouldn't make a difference. ARM relies on the pass running when using "-mthread-model single", because in that mode, it doesn't run AtomicExpand. See bug for more details.

Diff Detail

Event Timeline

hans created this revision.Aug 22 2017, 5:07 PM
This revision is now accepted and ready to land.Aug 22 2017, 5:23 PM
rengolin accepted this revision.Aug 23 2017, 1:08 AM
This revision was automatically updated to reflect the committed changes.