Displaying 3 results from an estimated 3 matches for "after_ret2".
Did you mean:
after_ret1
2015 Apr 05
3
[LLVMdev] alloca not in first bb behaving differently
...s = %entry
ret i32 2
if.end: ; preds = %after_ret1,
%after_
ret
ret i32 1
after_ret: ; No predecessors!
br label %if.end
after_ret1: ; No predecessors!
br label %if.end
after_ret2: ; No predecessors!
ret i32 0
}
The following IR is slightly different in that the alloca is defined not in
the first basic block:
define i32 @M() {
entry:
%x = alloca i32
store i32 333, i32* %x
br i1 true, label %if.then, label %if.else
if.then:...
2015 Apr 05
2
[LLVMdev] alloca not in first bb behaving differently
...; preds = %after_ret1, %after_
> ret
> ret i32 1
>
> after_ret: ; No predecessors!
> br label %if.end
>
> after_ret1: ; No predecessors!
> br label %if.end
>
> after_ret2: ; No predecessors!
> ret i32 0
> }
>
> The following IR is slightly different in that the alloca is defined not in the first basic block:
>
> define i32 @M() {
> entry:
> %x = alloca i32
> store i32 333, i32* %x
> br i1...
2015 Apr 05
2
[LLVMdev] alloca not in first bb behaving differently
...ret i32 1
>> >
>> > after_ret: ; No predecessors!
>> > br label %if.end
>> >
>> > after_ret1: ; No predecessors!
>> > br label %if.end
>> >
>> > after_ret2: ; No predecessors!
>> > ret i32 0
>> > }
>> >
>> > The following IR is slightly different in that the alloca is defined
>> not in the first basic block:
>> >
>> > define i32 @M() {
>> > ent...