[llvm-bugs] [Bug 30464] New: LLVM fails to DCE constant-folded calls to math functions
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Sep 20 10:03:44 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30464
Bug ID: 30464
Summary: LLVM fails to DCE constant-folded calls to math
functions
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: efriedma at codeaurora.org
CC: david.majnemer at gmail.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
Testcase:
#include <math.h>
void f() { exp(1.0); }
On x86-64 Linux, clang -O2 doesn't eliminate the call to exp(). (LLVM can
prove it's dead even with -fmath-errno because the result doesn't overflow.)
I think this is a regression from r276389.
--
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/20160920/2b98f7cc/attachment.html>
More information about the llvm-bugs
mailing list