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: unassignedb...@nondot.org
          Reporter: lepesme...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to