This extends the logic of http://reviews.llvm.org/rL270777 to also apply to GlobalVariables in addition to Allocas.
I don't think there's any other kind of base object this can cover - it doesn't seem safe for arguments, noalias calls, or global aliases.
Details
Details
Diff Detail
Diff Detail