[LLVMdev] Dead Store Elimination
baldrick at free.fr
Tue Sep 11 00:23:57 PDT 2012
> The mem2reg pass did not help. Moving the alloca instructions into the entry
> block did the trick.
> One other thing I noticed is that if there was only one alloca, the dead store
> is eliminated. Having the second one (does not matter which of the two) prevents
> the elimination. Is this a bug?
hard to say without an explicit testcase.
More information about the llvm-dev