Use block walk for ssa_cons_start
authorAndreas Zwinkau <zwinkau@kit.edu>
Fri, 15 Apr 2011 13:58:44 +0000 (15:58 +0200)
committerAndreas Zwinkau <zwinkau@kit.edu>
Fri, 15 Apr 2011 14:14:42 +0000 (16:14 +0200)
commit8010ed3d640a15ac18138d8a96ea61f318aae2cb
treef85f46a3678d811efe8c855afb8596bb61a76bc9
parentc0da9e550b467a372fe0733724784b0f323c33f5
Use block walk for ssa_cons_start

The node walk used before was inefficient,
since everything but blocks was ignored.

Additionally, this fixes a bug, because ssa_cons_finish already used a
block walk already, such that unreachable blocks were immatured,
but not matured in the scalar-replace optimization. This bug could
also be avoided by ensuring cfopt before scalar-replace, but keeping
ssacons start and finish symmetric seems to be more robust.
ir/ir/irssacons.c