Remove blocks with unreachable variables