search for: then5

Displaying 15 results from an estimated 15 matches for "then5".

Did you mean: then
2013 Aug 14
2
[LLVMdev] BranchInst comparison
Hi All, How could I use BranchInst to implement for example br label %if.else7 br label %if.then5 br i1 %cmp4, label %if.then5, label %if.else7 I can use BranchInst for only one instruction but how could I compare between two branches Thanks -- * Rasha Salah Omar Msc Student at E-JUST Demonestrator at Faculty of Computers and Informatics Benha University* * e-mail...
2013 Aug 14
3
[LLVMdev] BranchInst comparison
Your question isn't clear; please restate what specifically isn't working. -Eli On Wed, Aug 14, 2013 at 11:57 AM, Rasha Omar <rasha.sala7 at gmail.com> wrote: > or like this > > %cmp4 = icmp eq i32 %rem, 0 > > br i1 %cmp4, label %if.then5, label %if.else7 > > > On 14 August 2013 20:08, Rasha Omar <rasha.sala7 at gmail.com> wrote: > >> Hi All, >> >> How could I use BranchInst to implement for example >> br label %if.else7 >> br label %if.then5 >> br i1 %cmp4, label %if.then5,...
2013 Aug 14
0
[LLVMdev] BranchInst comparison
or like this %cmp4 = icmp eq i32 %rem, 0 br i1 %cmp4, label %if.then5, label %if.else7 On 14 August 2013 20:08, Rasha Omar <rasha.sala7 at gmail.com> wrote: > Hi All, > > How could I use BranchInst to implement for example > br label %if.else7 > br label %if.then5 > br i1 %cmp4, label %if.then5, label %if.else7 > > I can use Bran...
2016 Mar 22
3
Instrumented BB in PGO
...ned.bc -o _all_combined_inst.bc -debug-only=pgo-instrumentation Dump Function main Hash: 61483163021 after CFGMST Number of Basic Blocks: 10 BB: FakeNode Index=0 BB: if.then Index=5 BB: for.body Index=4 BB: for.body.lr.ph Index=3 BB: entry Index=1 BB: for.inc Index=8 BB: if.then5 Index=7 BB: if.end Index=6 BB: for.end Index=2 BB: for.end.loopexit Index=9 Number of Edges: 14 (*: Instrument, C: CriticalEdge, -: Removed) Edge 0: 8-->4 c W=247031 Edge 1: 6-->8 c W=159375 Edge 2: 4-->6 *c W=127500 Edge 3: 1-->2 c W=4500 Edge 4: 4-->5...
2013 Aug 15
0
[LLVMdev] BranchInst comparison
...tion isn't clear; please restate what specifically isn't working. > > -Eli > > On Wed, Aug 14, 2013 at 11:57 AM, Rasha Omar <rasha.sala7 at gmail.com>wrote: > >> or like this >> >> %cmp4 = icmp eq i32 %rem, 0 >> >> br i1 %cmp4, label %if.then5, label %if.else7 >> >> >> On 14 August 2013 20:08, Rasha Omar <rasha.sala7 at gmail.com> wrote: >> >>> Hi All, >>> >>> How could I use BranchInst to implement for example >>> br label %if.else7 >>> br label %if.then5 >...
2018 May 16
0
GlobalAddress lowering strategy
...; preds = %if.end tail call void @abort() #3 unreachable if.end3: ; preds = %if.end %2 = load i32, i32* getelementptr inbounds ([4 x i32], [4 x i32]* @a, i32 0, i32 2), align 4 %cmp4 = icmp eq i32 %2, 2 br i1 %cmp4, label %if.end6, label %if.then5 if.then5: ; preds = %if.end3 tail call void @abort() #3 unreachable if.end6: ; preds = %if.end3 %3 = load i32, i32* getelementptr inbounds ([4 x i32], [4 x i32]* @a, i32 0, i32 3), align 4 %cmp7 = icmp eq i32...
2011 Oct 19
0
[LLVMdev] Question regarding basic-block placement optimization
...load i32* %gep4 %cond4 = icmp ugt i32 %val4, 4 br i1 %cond4, label %then4, label %else4, !prof !0 then4: call void @error(i32 %i, i32 1, i32 %b) br label %else4 else4: %gep5 = getelementptr i32* %a, i32 3 %val5 = load i32* %gep5 %cond5 = icmp ugt i32 %val5, 3 br i1 %cond5, label %then5, label %exit, !prof !0 then5: call void @error(i32 %i, i32 1, i32 %b) br label %exit exit: ret i32 %b } !0 = metadata !{metadata !"branch_weights", i32 4, i32 64} % ./bin/llc -O2 -o - ifchain.ll .file "ifchain.ll" .text .globl test .a...
2011 Oct 19
3
[LLVMdev] Question regarding basic-block placement optimization
On Tue, Oct 18, 2011 at 6:58 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote: > > On Oct 18, 2011, at 5:22 PM, Chandler Carruth wrote: > > As for why it should be an IR pass, mostly because once the selection dag >> runs through the code, we can never recover all of the freedom we have at >> the IR level. To start with, splicing MBBs around requires known about
2013 Dec 13
0
[LLVMdev] GVNPRE /PRE is not effective
...addl phi, %eax cltd idivl %ecx movl %eax, sum movl (%edi,%esi,4), %ecx .LBB0_2: # %if.end leal (,%ecx,4), %eax cmpl $-14, %eax jl .LBB0_4 # BB#3: # %if.then5 movl $2147483647, %eax # imm = 0x7FFFFFFF addl phi, %eax cltd idivl %ecx movl %eax, sum .LBB0_4: # %if.end9 popl %esi popl %edi ret the instruction sequences like movl $214748...
2009 Sep 18
0
[LLVMdev] Problems with live-ins and live-outs
...0xa244c20 (#1) if.else: 0xa244c20, LLVM BB @0xa1f0a08, ID#1: Live Ins: %R15W %R15B Predecessors according to CFG: 0xa244bd4 (#0) CMP16ir -21, %R15W, %SRW<imp-def> JCC mbb<if.end7,0xa244cb8>, 5, %SRW<imp-use> Successors according to CFG: 0xa244c6c (#2) 0xa244cb8 (#3) if.then5: 0xa244c6c, LLVM BB @0xa1e93c0, ID#2: Live Ins: %R15W %R15B Predecessors according to CFG: 0xa244c20 (#1) %R12W<def> = MOV16ri 10 %R12W<def> = SUB16rr %R12W, %R15W<kill>, %SRW<imp-def> %R15W<def> = MOV16rr %R12W<kill> RET %R15W<imp-use,kill> if.end...
2012 Dec 25
2
[LLVMdev] [DragonEgg] Strange call to @"\01__isoc99_fscanf"
...%struct._IO_FILE* @fopen(i8* %5, i8* getelementptr inbounds ([2 x i8]* @.str3, i32 0, i32 0)) store %struct._IO_FILE* %call4, %struct._IO_FILE** %wfile, align 8 %6 = load %struct._IO_FILE** %wfile, align 8 %tobool = icmp ne %struct._IO_FILE* %6, null br i1 %tobool, label %if.end7, label %if.then5 if.then5: ; preds = %if.end %7 = load %struct._IO_FILE** @stderr, align 8 %8 = load i8** @filename, align 8 %call6 = call i32 (%struct._IO_FILE*, i8*, ...)* @fprintf(%struct._IO_FILE* %7, i8* getelementptr inbounds ([28 x i8]* @.str4, i32 0, i32 0), i8...
2017 Jun 19
4
LLVM behavior different depending on function symbol name
Greetings, I have a Zig implementation of ceil which is emitted into LLVM IR like this: ; Function Attrs: nobuiltin nounwind define internal fastcc float @ceil(float) unnamed_addr #3 !dbg !644 { Entry: %x = alloca float, align 4 store float %0, float* %x call void @llvm.dbg.declare(metadata float* %x, metadata !649, metadata !494), !dbg !651 %1 = load float, float* %x, !dbg !652 %2 =
2017 Jun 19
2
LLVM behavior different depending on function symbol name
...preds = %Else %18 = load float, float* %x, !dbg !98 %19 = fadd fast float %18, 0x4770000000000000, !dbg !100 call fastcc void @forceEval(float %19) #6, !dbg !101 %20 = load i32, i32* %u, !dbg !102 %21 = lshr i32 %20, 31, !dbg !103 %22 = icmp ne i32 %21, 0, !dbg !104 br i1 %22, label %Then5, label %Else6, !dbg !104 Then3: ; preds = %Then1 %23 = load float, float* %x, !dbg !105 ret float %23, !dbg !107 Else4: ; preds = %Then1 br label %EndIf, !dbg !108 Then5:...
2017 Jun 19
2
LLVM behavior different depending on function symbol name
...>> %19 = fadd fast float %18, 0x4770000000000000, !dbg !100 >> call fastcc void @forceEval(float %19) #6, !dbg !101 >> %20 = load i32, i32* %u, !dbg !102 >> %21 = lshr i32 %20, 31, !dbg !103 >> %22 = icmp ne i32 %21, 0, !dbg !104 >> br i1 %22, label %Then5, label %Else6, !dbg !104 >> >> Then3: ; preds = %Then1 >> %23 = load float, float* %x, !dbg !105 >> ret float %23, !dbg !107 >> >> Else4: ; preds = %Then1 >> br labe...
2013 Feb 14
1
[LLVMdev] LiveIntervals analysis problem
...unds ([10 x i16]* @eone, i32 0, i32 0), i16* %arraydecay4.i) nounwind %cmp52.i = icmp eq i32 %call51.i, 0 br i1 %cmp52.i, label %isone.i, label %if.end55.i if.end55.i: ; preds = %if.end49.i %cmp56.i = icmp slt i32 %call51.i, 0 br i1 %cmp56.i, label %if.then58.i, label %if.else123.i if.then58.i: ; preds = %if.end55.i %arraydecay60.i = getelementptr inbounds [13 x i16]* %u.i, i32 0, i32 0 %48 = load i16* %arraydecay4.i, align 2, !tbaa !5 %incdec.ptr1.i513.i = getelementptr inbounds [13 x i16]* %u.i, i32 0, i32...