remove redundant pushrflags and poprflags