Currently, InstSimplify uses the BasicAlias notation of identifiable objects. This doesn't work correctly in a number of cases as the requirements are much stricter here. AA only cares about pointers that are deferenced, so NoAlias attributes can be considered different from global objects for this purpose. The same is not true for the pointer comparison simplification.
Details
Details
Diff Detail
Diff Detail