Interprocedural MemorySSA Optimizations
lib/Optimization/IPO/ contains the interprocedural ShadowMem and MemorySSA
optimizations used by the optimization tooling.
Location: lib/Optimization/IPO/
Main passes:
IPDeadStoreEliminationremoves stores that never reach an observable use.IPRedundantLoadEliminationremoves repeated loads with equivalent reaching memory state.IPStoreSinkingmoves stores closer to their first real use.IPStoreToLoadForwardingreplaces loads with unique reaching stored values.
These passes are exposed through the interprocedural optimization front-end.
See also Optimization and Inter-Procedural Optimizations.