tgsi/scan: count memory instructions