On Wed, Feb 04, 2015 at 10:54:54AM +0100, Richard Biener wrote: > Sure. Of course it's bad that debug stmts use Generic... General > fold-stmt could do some of the work. Also that debug temps have no > use-def chains doesn't help too much.
Well, at least right now I believe debug temps work more like non-SSA variables rather than SSA_NAMEs, the same debug temp can be bound to different values at different points. At least e.g. loop unrolling certainly doesn't create new debug temps, but leaves the same debug temp bound multiple times. Dunno if that is intent or just a bug. Jakub