[llvm-bugs] [Bug 34941] Infinite loop if function name equals intrinsic used in it
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 16 14:27:15 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34941
Eli Friedman <efriedma at codeaurora.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
CC| |efriedma at codeaurora.org
--- Comment #1 from Eli Friedman <efriedma at codeaurora.org> ---
The standard lowering for llvm.floor.f64 on a target which doesn't support it
is a call to the C standard library's floor(). If you define a function named
floor() which doesn't implement the appropriate semantics, you're naturally
going to run into problems.
The only possible alternatives are to emit a complicated inline code sequence,
or define a new compiler-rt function which does exactly the same thing as libm
floor. But I don't see how either of those is really an improvement. So I
don't think there's anything to fix here.
--
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/20171016/4be5e673/attachment.html>
More information about the llvm-bugs
mailing list