Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's the general consensus.

However, much the same key optimisations are useful when both pointers have the same type. Given multiple float* pointers, you still want to know whether they alias for load/store forwarding and the like.

Once you've written the analysis to partition values of the same type into separate alias sets, that same analysis runs fine on values of different types.

Distinct types implying distinct alias sets does tolerate separate compilation well and is cheap to compute. The belief that it is the only way to achieve said key optimisations is worth some scepticism now that link time optimisation and interprocedural analysis are fairly common.



You can have the most sophisticated analysis imaginable, but then I cast rand() to a pointer and …




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: