[llvm-bugs] [Bug 34941] New: Infinite loop if function name equals intrinsic used in it
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 13 15:48:02 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34941
Bug ID: 34941
Summary: Infinite loop if function name equals intrinsic used
in it
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: MCJIT
Assignee: unassignedbugs at nondot.org
Reporter: lepesme.jb at gmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19271
--> https://bugs.llvm.org/attachment.cgi?id=19271&action=edit
Demo illustrating the problem
Hello,
I seem to get an infinite loop with simple function calling a f64 intrinsic.
I reproduced the problem with lli/llc with the following snippet:
declare double @llvm.floor.f64(double) #0
define double @floor(double) {
entry:
%tmp = call double @llvm.floor.f64(double %0)
ret double %tmp
}
define void @main() {
call double @floor(double 0.0)
ret void
}
attributes #0 = { nounwind readnone speculatable }
Changing the name of @floor, or switching to f32 seem to resolve the problem.
Using revision 315749.
--
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/20171013/b87e3dac/attachment.html>
More information about the llvm-bugs
mailing list