RemoveStageBarrier: code refactor
RemoveStageBarrier: add some log