llvm-project/llvm/test/Analysis/AliasSet
Philip Reames c3c23e8cf2 [AST] Remove notion of volatile from alias sets [NFCI]
Volatility is not an aliasing property. We used to model volatile as if it had extremely conservative aliasing implications, but that hasn't been true for several years now. So, it doesn't make sense to be in AliasSet.

It also turns out the code is entirely a noop. Outside of the AST code to update it, there was only one user: load store promotion in LICM. L/S promotion doesn't need the check since it walks all the users of the address anyway. It already checks each load or store via !isUnordered which causes us to bail for volatile accesses. (Look at the lines immediately following the two remove asserts.)

There is the possibility of some small compile time impact here, but the only case which will get noticeably slower is a loop with a large number of loads and stores to the same address where only the last one we inspect is volatile. This is sufficiently rare it's not worth optimizing for..

llvm-svn: 340312
2018-08-21 17:59:11 +00:00
..
argmemonly.ll [AST][Tests] Clarify what each test is doing 2018-08-17 21:58:26 +00:00
guards.ll [AliasSetTracker] Do not treat experimental_guard intrinsic as memory writing instruction 2018-08-15 06:21:02 +00:00
intrinsics.ll [AliasSetTracker] Do not treat experimental_guard intrinsic as memory writing instruction 2018-08-15 06:21:02 +00:00
memtransfer.ll [AST] Remove notion of volatile from alias sets [NFCI] 2018-08-21 17:59:11 +00:00
saturation.ll
unknown-inst-tracking.ll Use WeakVH instead of WeakTrackingVH in AliasSetTracker's UnkownInsts 2017-05-01 17:07:56 +00:00