[LLVMdev] Dead Store Elimination
Duncan Sands
baldrick at free.fr
Mon Sep 10 08:16:25 PDT 2012
Hi Vinayak,
> Here is the result of optimization using the following passes:
>
> llvm::createBasicAliasAnalysisPass()
> llvm::createInstructionCombiningPass()
> llvm::createReassociatePass()
> llvm::createGVNPass()
> llvm::createCFGSimplificationPass()
>
you should run the mem2reg pass too, and first.
> ; <label>:7 ; preds = %openSuccessBB
> %8 = alloca i64, align 8
Put alloca instructions in the entry block if possible.
Ciao, Duncan.
More information about the llvm-dev
mailing list