This isn't special - almost every compiler pass is a hueristic approximation of an NP-hard problem (hello register allocation, instruction scheduling).