I want to separate out the notions of invariance and dereferenceability
at the MI level, so that they correspond to the equivalent concepts at
the IR level. (Currently an MI load is MI-invariant iff it's
IR-invariant and IR-dereferenceable.)
First step is renaming this function.
I think this comment is missing something major. In general, dereferenceability is a context-sensative property. In this query, the dereferenceable property is not context sensative and can only return true if the location is dereferenceable for any possible context. That should be clarified.
The "any possible context" bit is the issue Hal raises about function scope vs global scope. I believe we want function scope, but that implies we have to strip the relevant flag if we ever inline at the MI level. Do we actually do that?