Change a bunch of isVolatile() checks to check for atomic load/store as well.
authorEli Friedman <eli.friedman@gmail.com>
Mon, 12 Sep 2011 20:23:13 +0000 (20:23 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 12 Sep 2011 20:23:13 +0000 (20:23 +0000)
commit2bc3d52b9ab422ee9f7e42a1a4e3b818e623a5f7
tree399efba22c6e8847e43d3bd5f8561c8a194b6aa6
parenta0737950233acc271e444b270498d4986b4d2d00
Change a bunch of isVolatile() checks to check for atomic load/store as well.

No tests; these changes aren't really interesting in the sense that the logic is the same for volatile and atomic.

I believe this completes all of the changes necessary for the optimizer to handle loads and stores correctly.  I'm going to try and come up with some additional testing, though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/EarlyCSE.cpp
lib/Transforms/Scalar/JumpThreading.cpp
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
lib/Transforms/Scalar/ObjCARC.cpp
lib/Transforms/Scalar/ScalarReplAggregates.cpp