search for: llvmpb

Displaying 3 results from an estimated 3 matches for "llvmpb".

Did you mean: llvmbb
2012 Aug 30
1
[LLVMdev] PHI
...k: BB#0 entry (0x2412320) *** Bad machine code: PHI operand is not in the CFG *** - function: main - basic block: BB#0 entry (0x2412320) - instruction: PHI <BB#1> - operand 0: <BB#1> LLVM ERROR: Found 2 machine code errors. .... From trace: 0. Program arguments: /home/rkotler/llvmpb/install/bin/llc -mcpu=mips16 forloop1.ll -march=mipsel -relocation-model=pic -o forloop1.s -O3 1. Running pass 'Function Pass Manager' on module 'forloop1.ll'. 2. Running pass 'Mips Assembly Printer' on function '@main' Aborted rkotler at ubuntu-rkotler:~/wor...
2012 Oct 02
4
[LLVMdev] interesting possible compiler bug
...curr; do { curr = malloc(1); } while (curr); return 0; } If you compile it with no optimization, it will keep the malloc calls. If you compile it with -O2, it will create an infinite loop, i.e. assuming that malloc always returns a non zero result and the result is not used. ~/llvmpb/install/bin/clang loop.c -O2 -S .file "loop.c" .text .globl main .align 16, 0x90 .type main, at function main: # @main .cfi_startproc # BB#0: # %entry .align 16, 0x90 .LBB0...
2012 Oct 02
0
[LLVMdev] interesting possible compiler bug
...callq malloc movb (%rax), %cl testq %rax, %rax jne .LBB0_1 # BB#2: # %do.end xorl %eax, %eax popq %rdx ret Oh how people don't appreciate the luxury of having an infinite memory machine! Nick ~/llvmpb/install/bin/clang loop.c -O2 -S > > .file "loop.c" > .text > .globl main > .align 16, 0x90 > .type main, at function > main: # @main > .cfi_startproc > # BB#0:...