martong added a comment.

> In this case the equations are $y == 0 and $x + 0 == 0 which is much easier 
> to solve.

Yes, you are right.

> This happens for the same reason that your patch is needed in the first 
> place: we're eagerly substituting a constant.

Absolutely, that's the point. On the other hand, it is very important to 
emphasize that we cannot solve this problem with a stronger solver, see my 
example with 3 variables and two equations above.

Also, another interesting question is (drawn up by @steakhal) if we can/could 
handle associativity somehow. Commutativity seems to be handled by the 
constraint manager (alas we'd search for "y + x" when we query "x + y").


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102696/new/

https://reviews.llvm.org/D102696

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to