[llvm-commits] [llvm] r150885 - /llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp

Rafael Espíndola rafael.espindola at gmail.com
Sat Feb 25 18:37:10 PST 2012


On 24 February 2012 22:44, Chris Lattner <clattner at apple.com> wrote:
> I haven't been following the whole thread, but dominators provides one specific invariant: unreachable code does not show up, so it never returns true for dominance relations.  DomTrer also had an isReachable predicate.  This system has worked quite well so far.

I see. I updated my patches to assert that the dominates(inst, inst)
function is only used with reachable code and committed.

What is the rationale for assuming reachable code? Other than the
isReachableFromEntry implementation, it looks like most code would be
ok with an interface where dominates(any, unreachable) is true.

> -Chris

Cheers,
Rafael




More information about the llvm-commits mailing list