Add a CSE pass to Stg (#9291)