[cfe-commits] Please review: enable TBAA at "-O0 -fthread-sanitizer"

Chandler Carruth chandlerc at google.com
Mon Apr 23 22:55:44 PDT 2012


On Mon, Apr 23, 2012 at 1:09 AM, Kostya Serebryany <kcc at google.com> wrote:

> Hello,
> Please review the following updated patch.
> TBAA should be generated for ThreadSanitizer regardless of opt level
> and relaxed-aliasing.
>

Since Chris has goon a bit silent, I'll pick this up. I think you've
addressed his feedback already.

Couple of tiny nits, and with these fixes, please commit.

+// when -fthread-sanitizer is used TBAA should be generated at all opt
levels
+// even if -relaxed-aliasing is present.

s/when/When/

Can you add a negative test that demonstrates we *don't* generate this TBAA
in -O0 or -O2 -relaxed-aliasing?

I wonder if -relaxed-aliasing should trump -fthread-sanitizer, and fully
suppress the TBAA... Not clear, but not a big deal to get addressed before
you commit as it only impacts -fthread-sanitizer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120423/c27735ee/attachment.html>


More information about the cfe-commits mailing list