[LLVMdev] dead store elimination with external functions

Krzysztof Parzyszek
Wed, 12 Sep 2012 14:35:14 -0000

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)

-K


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