Introduction
When a program runs, it often repeats tasks or calculations that could be done once and reused. Global optimization techniques help the compiler find these opportunities across the entire program to make it run faster and use less memory.