Displaying 3 results from an estimated 3 matches for "else9".
Did you mean:
else
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
...%24 = load float, float* %x, !dbg !112
%25 = fadd fast float %24, 0x4770000000000000, !dbg !113
call fastcc void @forceEval(float %25) #6, !dbg !114
%26 = load i32, i32* %u, !dbg !115
%27 = lshr i32 %26, 31, !dbg !116
%28 = icmp eq i32 %27, 0, !dbg !117
br i1 %28, label %Then8, label %Else9, !dbg !117
EndIf7: ; preds = %Else6
br label %EndIf11, !dbg !118
Then8: ; preds = %EndIf
%29 = load i32, i32* %u, !dbg !119
%30 = load i32, i32* %m, !dbg !121
%31 = add nuw i32 %29, %30, !dbg !122
store...
2017 Jun 19
2
LLVM behavior different depending on function symbol name
...5 = fadd fast float %24, 0x4770000000000000, !dbg !113
>> call fastcc void @forceEval(float %25) #6, !dbg !114
>> %26 = load i32, i32* %u, !dbg !115
>> %27 = lshr i32 %26, 31, !dbg !116
>> %28 = icmp eq i32 %27, 0, !dbg !117
>> br i1 %28, label %Then8, label %Else9, !dbg !117
>>
>> EndIf7: ; preds = %Else6
>> br label %EndIf11, !dbg !118
>>
>> Then8: ; preds = %EndIf
>> %29 = load i32, i32* %u, !dbg !119
>> %30 = load i32, i32*...