Displaying 3 results from an estimated 3 matches for "external_fcn3".
2012 Sep 12
3
[LLVMdev] dead store elimination with external functions
Here is an llvm ir of a module. It seems that "b1" should be eliminated by
dead store elimination. But it did not.
Could anyone explain why and how "b1" can be eliminated?
Thanks,
-Peng
%0 = type { [3 x [1 x i32]] }
declare %0 @external_fcn3(i32, i32, i32, i32, [3 x [1 x i32]]*)
define i32 @f3(i32 %a) readnone {
entry:
%b1 = alloca [3 x [1 x i32]]
%b2 = alloca [3 x [1 x i32]]
%c = alloca %0
%0 = getelementptr [3 x [1 x i32]]* %b1, i32 0, i32 0, i32 0
store i32 0, i32* %0
%1 = getelementptr [3 x [1 x i32]]* %b1, i32 0, i32...
2012 Sep 12
0
[LLVMdev] dead store elimination with external functions
...Here is an llvm ir of a module. It seems that "b1" should be eliminated by dead
> store elimination. But it did not.
>
> Could anyone explain why and how "b1" can be eliminated?
>
> Thanks,
> -Peng
>
> %0 = type { [3 x [1 x i32]] }
>
> declare %0 @external_fcn3(i32, i32, i32, i32, [3 x [1 x i32]]*)
>
> define i32 @f3(i32 %a) readnone {
> entry:
> %b1 = alloca [3 x [1 x i32]]
> %b2 = alloca [3 x [1 x i32]]
> %c = alloca %0
> %0 = getelementptr [3 x [1 x i32]]* %b1, i32 0, i32 0, i32 0
> store i32 0, i32* %0
> %1...
2012 Sep 12
1
[LLVMdev] dead store elimination with external functions
...uot;b1" should be eliminated
>> by dead
>> store elimination. But it did not.
>>
>> Could anyone explain why and how "b1" can be eliminated?
>>
>> Thanks,
>> -Peng
>>
>> %0 = type { [3 x [1 x i32]] }
>>
>> declare %0 @external_fcn3(i32, i32, i32, i32, [3 x [1 x i32]]*)
>>
>> define i32 @f3(i32 %a) readnone {
>> entry:
>> %b1 = alloca [3 x [1 x i32]]
>> %b2 = alloca [3 x [1 x i32]]
>> %c = alloca %0
>> %0 = getelementptr [3 x [1 x i32]]* %b1, i32 0, i32 0, i32 0
>>...