Compilers face limitations in reordering due to true data dependencies, ambiguous memory aliasing which prevents proving independence, and explicit memory barriers or `volatile` keywords that developers use to enforce specific instruction orders.
Open the full topic