Alias analysis would like to know that
invariant.group.barrier returns pointer that mustalias,
but this can't imply that we can replace one pointer with another
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Minor comments inline.
docs/AliasAnalysis.rst | ||
---|---|---|
139 ↗ | (On Diff #94361) | A better wording would be "A `MustAlias` response does not imply that the pointers compare equal." |
docs/LangRef.rst | ||
5121 ↗ | (On Diff #94361) | This is minor, but I'd s/Because/Since/ Even better, I'd put the (IMO more important) warning before its justification: The invariant.group metadata must be dropped when replacing one pointer by another based on aliasing information. This is because invariant.group is tied to the SSA value of the pointer operand. |
5129 ↗ | (On Diff #94361) | Not sure what this line adds -- can you give an example here as well? |
Comment Actions
Thanks Sanjoy!
docs/LangRef.rst | ||
---|---|---|
5129 ↗ | (On Diff #94361) | I guess I will just delete that because it doesn't add any new info |