[LLVMdev] dead store elimination with external functions

Krzysztof Parzyszek kparzysz at codeaurora.org
Wed Sep 12 07:35:14 PDT 2012

On 9/12/2012 9:21 AM, Peng Cheng wrote:
> Here is an llvm ir of a module.  It seems that "b1" should be eliminated
> by dead store elimination.  But it did not.

You're passing b1 as an argument to a function call after the stores:

>    %3 = call %0 @external_fcn3(i32 100, i32 200, i32 %a, i32 200, [3 x
> [1 x i32]]* %b1)


Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation

More information about the llvm-dev mailing list