Hand-coded optimization rules for primitives and low-level words