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

Piotr Padlewski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 24 03:28:25 PDT 2017


Prazek updated this revision to Diff 96371.
Prazek added a comment.

Don't add barrier if compared with nullptr. With this it reduces added 
barriers to compares by half. Note that we will transform barrier(null) -> barrier
in llvm


https://reviews.llvm.org/D32378

Files:
  lib/CodeGen/CGExprScalar.cpp
  test/CodeGenCXX/strict-vtable-pointers.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32378.96371.patch
Type: text/x-patch
Size: 4224 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170424/f2f1a762/attachment-0001.bin>


More information about the cfe-commits mailing list