[llvm-bugs] [Bug 34255] llvm-cov: Coverage for destructors wrong with optimizations
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 21 09:58:45 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34255
Vedant Kumar <vsk at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |vsk at apple.com
Resolution|--- |WORKSFORME
--- Comment #1 from Vedant Kumar <vsk at apple.com> ---
I can't reproduce this issue. Mind sharing the exact compiler flags you're
using, and the IR at both -O0 and -O1?
At -O1, I see the counter increment for Bar's destructor inlined into main():
%3 = load i64, i64* getelementptr inbounds ([1 x i64], [1 x i64]*
@__profc__ZN3BarD2Ev, i64 0, i64 0), align 8
%4 = add i64 %3, 1
store i64 %4, i64* getelementptr inbounds ([1 x i64], [1 x i64]*
@__profc__ZN3BarD2Ev, i64 0, i64 0), align 8
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170821/e10cebf8/attachment.html>
More information about the llvm-bugs
mailing list