[llvm-bugs] [Bug 46822] New: Failure to optimize based on [[noreturn]]
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 23 08:36:46 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46822
Bug ID: 46822
Summary: Failure to optimize based on [[noreturn]]
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: gabravier at gmail.com
CC: llvm-bugs at lists.llvm.org
[[noreturn]] void g(int i)
{
if (i > 0)
abort();
}
This can be optimized to `abort();`. This transformation is done by GCC, but
not by LLVM.
--
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/20200723/13bf654f/attachment.html>
More information about the llvm-bugs
mailing list