5.7.7.19 Gcse-sm Option
The -fgcse-sm
option runs a store motion pass after the global common
subexpression elimination optimizations. This pass attempts to move stores out of loops.
When used in conjunction with -fgcse-lm
, loops containing a load/store
sequence can change to a load before the loop and a store after the loop.
The option is not automatically enabled at any optimization level.
The -fno-gcse-sm
form of this option does not move these sequences.