[llvm-bugs] [Bug 30550] New: LLVM's Global Value Numbering pass bug
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 28 07:04:57 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30550
Bug ID: 30550
Summary: LLVM's Global Value Numbering pass bug
Product: clang
Version: 3.9
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: Anton.Baliasnikov at synopsys.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 17373
--> https://llvm.org/bugs/attachment.cgi?id=17373&action=edit
tst function have to return 0, but returns 1 with O2, O3 and inlining
With inlining and performance optimization (O2 and O3) clang optimize away some
part of code and return the wrong value.
Compile the attached test with the following command line:
) clang -Wall -std=c++14 -stdlib=libc++ -O3 -o a.out test.cpp
the test will fail.
The test passes with -fno-inline-functions or -O0.
--
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/20160928/839bcc70/attachment-0001.html>
More information about the llvm-bugs
mailing list