rjmccall added a comment.

In D86993#4474267 <https://reviews.llvm.org/D86993#4474267>, @RalfJung wrote:

> The first point is important for LLVM's own memcpy/memmove intrinsics, which 
> are documented as NOPs on size 0 (and e.g. Rust relies on that).

Right, I understand that these assumptions come directly from the stronger 
semantics offered by the LLVM intrinsics.  The C committee is not going to find 
that compelling, though — we don't get to default-win arguments just because 
we've defined an IR with stronger semantics than necessary.  They are going to 
want to see arguments about why it's valuable for the C library to have these 
stronger semantics, which for us means talking about code patterns in user 
programs that take advantage of those stronger semantics and the benefits they 
see from that.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D86993

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

Reply via email to