efriedma-quic wrote:

This seems semantically ambiguous.

In GlobalISel, you have G_PTR_ADD, and inbounds on that has an obvious meaning; 
G_PTR_ADD has basically the same semantics as getelementptr.  But in 
SelectionDAG, we don't have that; we just have a plain ISD::ADD.  How do you 
tell which operand is the pointer?  The obvious heuristic is outright wrong: 
you can't assume a value is being used as a pointer just because its value is 
equal to the address of some variable.

https://github.com/llvm/llvm-project/pull/131862
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to