remove redundant condition checking in profiling RTS code