[llvm-dev] segv inside loop on x86_64
David Majnemer via llvm-dev
llvm-dev at lists.llvm.org
Tue Oct 27 09:16:39 PDT 2015
On Tue, Oct 27, 2015 at 9:14 AM, David Majnemer <david.majnemer at gmail.com>
wrote:
>
>
> On Mon, Oct 26, 2015 at 10:13 PM, Matt Arsenault via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>>
>> On Oct 27, 2015, at 12:46 AM, Peter McKinna via llvm-dev <
>> llvm-dev at lists.llvm.org> wrote:
>>
>> label_1: ; preds = %label_2,
>> %entry
>> %v.87 = load i64, i64* %i, align 8
>> %abs_icmp = icmp slt i64 %v.87, 0
>> %itetmp = alloca i64
>> br i1 %abs_icmp, label %abs_then, label %abs_else
>>
>>
>> You are supposed to have all allocas in the entry block, although I’m not
>> sure if this is not expected to work.
>>
>
> You can have allocas outside the entry block *but* they are not statically
> allocated, they are dynamically allocated.
>
> What this loop is running out of stack because it is allocating 8 bytes on
> each iteration and executing ~500000 iterations.
>
Apologies for the noise, I didn't see the follow on mails... My mail client
must be misconfigured....
>
>
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151027/d5ff9f6b/attachment-0001.html>
More information about the llvm-dev
mailing list