Commit graph

2 commits

Author SHA1 Message Date
Johan Engelen
79d83cdb80
Fix array_equals_memcmp_dyn test. (#2637)
The frontend now does most of the dyn-dyn comparison optimization (turning it into a druntime template function call).

Fixes a failure on PPC.
2018-05-07 19:53:35 +02:00
Johan Engelen
a4055962fe Implement optimization: compare slices using memcmp if valid (#2047)
This also fixes a pessimization where the `memcmp` call would become an `invoke` if the user provides his own `memcmp` prototype in the code (the prototype would not carry the `nounwind` function attribute).
2017-03-29 20:00:21 +02:00