octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loop containing x/0 gives LLVM error (with jit)


From: Max Brister
Subject: Re: loop containing x/0 gives LLVM error (with jit)
Date: Fri, 3 Aug 2012 15:22:34 -0500

On Fri, Aug 3, 2012 at 3:00 PM, Muhali <address@hidden> wrote:
> actually, it may be a little bit more involved. Using the function gord
> (attached, taken from gauss2lats.m) I get the same LLVM error message for
>
> gord(2, 0.7)
>
> although there is no division by 0. Moreover, inserting the line
>
> b*(fn+fn-a)
>
> before the division, I get
>
> octave: jit-typeinfo.cc:505: llvm::Value*
> jit_function::call(llvm::IRBuilderD&, const std::vector<jit_value*>&) const:
> Assertion `in_args.size () == args.size ()' failed.
> Aborted

It looks like I was checking to see if the first argument was zero
instead of the second argument. I have fixed this on the default
branch (9df70a18aa27). Are you using an old version of the default
branch? I can't reproduce the assertion failure. Also, in the latest
version code is not compiled unless there is at least 1000 iterations.

> Strange.
>
> M.
>
> <snip>

Max Brister


reply via email to

[Prev in Thread] Current Thread [Next in Thread]