While walking defs of pointer operands we were assuming that the pointer
size would remain constant. This is not true, because addresspacecast
instructions may cast the pointer to an address space with a different
pointer width.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
lgtm
Btw, this looks like a good reason to change accumulateConstantOffset to return an Optional<APInt> of the right bitwidth.