Avoid using ptrtoint/inttoptr.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Using ptrmask here looks good to me, but it looks like a couple of tests need still updating;
Comment Actions
The __builtin_align_{up,down} code generation could also make use of this IIRC. I think the reason I didn't do this initially was concerns about ptrmask not being optimized as well.
Comment Actions
LGTM, thanks!
The __builtin_align_{up,down} code generation could also make use of this IIRC. I think the reason I didn't do this initially was concerns about ptrmask not being optimized as well.
Yeah, I think it would probably be good to use the intrinsic and just address the remaining relevant gaps, if there are any.