search for: createdeadcodeeliminationpass

Displaying 9 results from an estimated 9 matches for "createdeadcodeeliminationpass".

2013 Jan 29
0
[LLVMdev] Running a Local Buildbot
...lt;<endl; exit(1); } pm = new PassManager(); pm->add(createAlwaysInlinerPass()); fpm = new FunctionPassManager(module); fpm->add(new TargetData(module)); fpm->add(createGVNPass()); fpm->add(createInstructionCombiningPass()); fpm->add(createDeadCodeEliminationPass()); fpm->add(createCFGSimplificationPass()); fpm->add(createDeadStoreEliminationPass()); InitializeNativeTarget(); atexit(llvm_shutdown); EngineBuilder builder(module); We have problems because TargetData does not seem to exist anymore. Where is the documentation de...
2005 Jun 25
1
[LLVMdev] how to use LoopInfo outside of LLVM
...utside of LLVM. Now I need get LoopInfo for a function. I know that if my project were a pass inside LLVM. I can get LoopInfo by "AU.addRequired<LoopInfo>()" and "getAnalysis<LoopInfo>()". Also I know I can get a function pass by "llvm::FunctionPass* dce = llvm::createDeadCodeEliminationPass(); dce->runOnFunction(*func)" outside of LLVM. But I can't figure out a way to get LoopInfo outside of LLVM. Is there any possible way to do it? Thanks, -Junjuan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev...
2009 Mar 16
0
[LLVMdev] Strange LLVM Crash
...es s_pFunctionPasses->add(new llvm::TargetData(s_pModule)); s_pFunctionPasses->add(llvm::createCFGSimplificationPass()); s_pFunctionPasses->add(llvm::createPromoteMemoryToRegisterPass()); s_pFunctionPasses->add(llvm::createConstantPropagationPass()); s_pFunctionPasses->add(llvm::createDeadCodeEliminationPass()); s_pFunctionPasses->add(llvm::createInstructionCombiningPass()); Where s_pFunctionPasses is a FunctionPassManager I create when initializing my program and delete at shutdown. I'm running the CFG simplification one first in the hope that it will speed up the passes that follow it. Just...
2012 Dec 03
2
[LLVMdev] Which transform passes to apply?
Hello, I'm a new LLVM user working on a C++ EDSL for image processing. I have a function, which after applying createInstructionCombiningPass() and createDeadCodeEliminationPass() looks like: define void @jitcv_sum_64sf1001(%Matrix* %src, %Matrix* %dst, i32 %len) { entry: br label %loop_i loop_i: ; preds = %loop_i_end, %entry %i = phi i32 [ 0, %entry ], [ %increment_i, %loop_i_end ] %0 = getelementptr inbounds %Matrix* %dst...
2009 Mar 16
2
[LLVMdev] Strange LLVM Crash
On Mar 15, 2009, at 7:55 AM, Nyx wrote: > > Is there a webpage documenting these function passes? Here's some: http://llvm.org/docs/WritingAnLLVMPass.html#FunctionPass You can also look in llvm/lib/Transforms/Scalar for runOnFunction () > Which ones should I run > to maximize performance? There's no right way to determine this. It depends on what you need/ want from your
2013 Jan 28
7
[LLVMdev] Running a Local Buildbot
We're thinking about running our own buildbot against the upstream llvm and clang sources. I'm talking to our build folks and seeing what they can allow. Maybe we can contribute some build slaves to the osuosl buildbot but I'm not sure. If we do end up having to run our own buildbot, what's the best way to integrate that into the upstream web page and status notifier? Basically,
2012 Dec 04
0
[LLVMdev] Which transform passes to apply?
Hi Josh, On 03/12/12 02:58, Josh Klontz wrote: > Hello, I'm a new LLVM user working on a C++ EDSL for image processing. I have > a function, which after applying createInstructionCombiningPass() and > createDeadCodeEliminationPass() looks like: > ... > *%dst_yRem = urem i32 %i, %dst_columns > %dst_y = urem i32 %i, %dst_columns > %1 = sub i32 %i, %dst_y > %2 = add i32 %1, %dst_yRem* ... > My question is which optimization pass(es) are needed to simplify the > instructions in bold. I've t...
2005 Jun 25
0
[LLVMdev] how to use LoopInfo outside of LLVM
...utside of LLVM. Now I need get LoopInfo for a function. I know that if my project were a pass inside LLVM. I can get LoopInfo by "AU.addRequired<LoopInfo>()" and "getAnalysis<LoopInfo>()". Also I know I can get a function pass by "llvm::FunctionPass* dce = llvm::createDeadCodeEliminationPass(); dce->runOnFunction(*func)" outside of LLVM. But I can't figure out a way to get LoopInfo outside of LLVM. Is there any possible way to do it? Thanks, -Junjuan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev...
2011 Apr 05
3
[LLVMdev] Building LLVM on Solaris/Sparc
...allelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o llvm::BasicBlock::getTerminator() /n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/PrintSCC.o llvm::createDeadInstEliminationPass() /n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o llvm::createDeadCodeEliminationPass() /n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o llvm::cl::opt<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, false, llvm::cl::parser<std::basic_string<char, std::char_traits<char>, std::allocator<char&gt...