Add a pass to remove dead assignments.

The pass transforms code like

    x <- a + b
    y <- 5
    return y

to

    y <- 5
    return y