Unlike BitCasts, AddrSpaceCasts do not always produce an output the same size as its input, which was previously assumed. This fixes cases where two address spaces do not have the same size pointer, as an assertion failure would occur in LoopSimplify when an the output of an AddrSpaceCast is used as an input operand for a GEP as the base pointer would be of a different size to an offset.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM w/minor comment addressed.
test/Transforms/LoopUnswitch/2015-09-18-Addrspace.ll | ||
---|---|---|
3 | A comment about what this is testing a FileCheck directive or two would be good. |
Comment Actions
Added comment to test as per recommendation.
As I do not yet have commit access, could someone commit this on my behalf?
A comment about what this is testing a FileCheck directive or two would be good.