The shift from simple operation-level padding to input-level constrained dynamic shapes, where prompts are padded once to hardware-friendly multiples, has boosted LLM prefill throughput by over 23 times on GPUs and NPUs, enabling efficient edge inference.