[perl #26986] Skip subst const repl optimisation for logops