<div dir="ltr"><div><div><div>Hi,<br><br>I am wondering why not put some or all of the information gathered in the globals mod/ref information as metadata on loads and stores. <br><br>According to the alias documentation:<br><a href="http://llvm.org/docs/AliasAnalysis.html#the-globalsmodref-aa-pass">http://llvm.org/docs/AliasAnalysis.html#the-globalsmodref-aa-pass</a><br><br>"This pass implements a simple context-sensitive mod/ref and alias analysis for
internal global variables that don’t “have their address taken”.  If a global
does not have its address taken, the pass knows that no pointers alias the
global. ... "<br><br></div>The globals mod ref pass can add metadata on each use of these internal global variables if their addresses were not taken. Alias analyzer could skip these addresses from all alias sets.<br><br></div>Thanks,<br></div>Ram<br></div>