[PATCH] D32378: Insert invariant.group.barrier for pointers comparisons

Piotr Padlewski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 23 09:52:08 PDT 2017


Prazek added a comment.

This is actually good catch, we also need to do it when inserting barrier in placement new. 
I think that for the ctors and dtors we can do it only with optimizations enabled, because if optimizations are not enabled then ctors and dtors won't have the invariant.group in stores.


https://reviews.llvm.org/D32378





More information about the cfe-commits mailing list