search for: raiseallocs

Displaying 20 results from an estimated 42 matches for "raiseallocs".

2009 Apr 28
3
[LLVMdev] O3 passes
Can I specify passes that I want run directly to llvm-gcc? I don't want all of -O3, for example. I tried llvm-gcc -raiseallocs ..., but that didn't work. I also tried running cc1 directly and it didn't take -raiseallocs as a parameter either. Duncan Sands wrote: > On Tuesday 28 April 2009 04:02:47 am Ryan M. Lefever wrote: >> I assume that when -O3 (or O2 or O1) is passed to llvm-gcc, then it >>...
2009 Oct 24
1
[LLVMdev] [PATCH] remove usage of RaiseAllocations pass from llvm-gcc
After LLVM rev 84987, the RaiseAllocations pass no longer exists. llvm-gcc needs to be patched: Index: gcc/llvm-linker-hack.cpp =================================================================== --- gcc/llvm-linker-hack.cpp (revision 84984) +++ gcc/llvm-linker-hack.cpp (working copy) @@ -80,7 +80,6 @@ llvm::createJumpThreadingPass(); llvm::createFunctionInliningPass();
2009 Apr 28
1
[LLVMdev] O3 passes
Thanks for the help. When I run the following (where $llvm is the path to my llvm installation): $llvm/bin/llvm-gcc -c -o - -O1 tmp.c -emit-llvm -mllvm --disable-llvm-optzns | $llvm/bin/opt -raiseallocs I get the following error: cc1: error: unrecognized command line option "-fdisable-llvm-optzns" I am running llvm 2.5. I performed a $llvm/libexec/gcc/i686-pc-linux-gnu/4.2.1/cc1 --help and didn't see -fdisable-llvm-optzns or anything similar. Do you know what might be going o...
2009 Apr 28
0
[LLVMdev] O3 passes
On Tuesday 28 April 2009 09:19:19 am Ryan M. Lefever wrote: > Can I specify passes that I want run directly to llvm-gcc? I don't want > all of -O3, for example. I tried llvm-gcc -raiseallocs ..., but that > didn't work. I also tried running cc1 directly and it didn't take > -raiseallocs as a parameter either. You are better off run passes explicitly using opt. Try this: llvm-gcc -c -o - -O1 my_proc.c -emit-llvm -mllvm --disable-llvm-optzns | opt list_of_passes Pass...
2007 Oct 27
3
[LLVMdev] malloc() vs. MallocInst
...e time for why poolalloc wouldn't transform calls to malloc() in my program, until I noticed that it handles calls to malloc() (eg, stdlib pass) -- but only transforms MallocInst's. Is there a general policy on how passes should behave? Should they handle both representations, is doing -raiseallocs the preferred way, or do we explicitely not want any single policy (ie, are there any hidden problems)? Perhaps this could also get a FAQ entry or sth. like that. Torvald
2009 Apr 28
3
[LLVMdev] O3 passes
I assume that when -O3 (or O2 or O1) is passed to llvm-gcc, then it utilizes opt. How do I determine what passes opt runs? How do I determine what external tools (and arguments) llvm-gcc is invoking? Regards, Ryan
2009 Apr 28
0
[LLVMdev] O3 passes
On Tuesday 28 April 2009 04:02:47 am Ryan M. Lefever wrote: > I assume that when -O3 (or O2 or O1) is passed to llvm-gcc, then it > utilizes opt. How do I determine what passes opt runs? How do I > determine what external tools (and arguments) llvm-gcc is invoking? It doesn't invoke opt, it runs the passes directly. You can see what passes it is running by passing
2004 Mar 23
1
[LLVMdev] malloc instruction
Hi, I'm currently implementing some optimization passes for LLVM and I came across a problem. I'm new to LLVM so if this question has been asked before please kindly tell me where can I find the answer. There are 2 types of AllocationInst - Alloca and Malloc. But most of the time from the compiled byte code I can only find the Alloca statement (actually I never come across a
2008 Jun 20
1
[LLVMdev] libc malloc vs. llvm::MallocInst
Hello, have a short look at the following simple c-prog: #include <stdlib.h> int main(int argc, char* argv[]) { void* buf = malloc(10 * sizeof(char*)); /* do sth with buf, so that it is not "optimized away" */ return 0; } When you compile this using a plain llvm-gcc, the call to libc-malloc is left inside.But compiling it with -O2 alters the call to llvm::MallocInst. Now
2008 Nov 19
2
[LLVMdev] poolallocation error
...sertion failures for the pass dependencies. This is when it in PointerCompress::getAnalysisUsage tries to register the the BU pass as required. I.e. when AU.addRequired<CompleteBUDataStructures>(); is called. $ opt -f -load ~/Projects/llvmstuff/opt/poolalloc/lib/ libpoolalloc.dylib -raiseallocs -poolalloc-passing-all-pools - pointercompress llist-noopt.bc -o llist-dp.bc Assertion failed: ((P->getPotentialPassManagerType() < RequiredPass- >getPotentialPassManagerType()) && "Unable to handle Pass that requires lower level Analysis pass"), function addLower...
2009 Feb 02
1
[LLVMdev] Proposal: Debug information improvement - keep the line number with optimizations
...ng the way proposed by Chris, it is good to have a script to scan the standard LLVM transform pass list. We can get the standard compile optimization pass list by: $ opt -std-compile-opts -debug-pass=Arguments foo.bc > /dev/null Pass Arguments: -preverify -domtree -verify -lowersetjmp -raiseallocs -simplifycfg -domtree -domfrontier -mem2reg -globalopt -globaldce -ipconstprop -deadargelim -instcombine -simplifycfg -basiccg -prune-eh -inline -argpromotion -tailduplicate -simplify-libcalls -instcombine -jump-threading -simplifycfg -domtree -domfrontier -scalarrepl -instcombine -break-crit-edges...
2007 Oct 29
0
[LLVMdev] malloc() vs. MallocInst
...t; transform calls > to malloc() in my program, until I noticed that it handles calls to > malloc() > (eg, stdlib pass) -- but only transforms MallocInst's. > > Is there a general policy on how passes should behave? Should they > handle both > representations, is doing -raiseallocs the preferred way, or do we > explicitely not want any single policy (ie, are there any hidden > problems)? > Perhaps this could also get a FAQ entry or sth. like that. > > Torvald > _______________________________________________ > LLVM Developers mailing list > LLVMdev a...
2008 Dec 04
0
[LLVMdev] 32bit math being promoted to 64 bit
instcombine doesn't seem to be doing it. From my testing it seems to only occur when I use -indvars after a long string of commands. For example: llvm-as < test_fc_27.ll | opt -preverify -domtree -verify -lowersetjmp -raiseallocs -simplifycfg -domtree -domfrontier -mem2reg -globalopt -globaldce -ipconstprop -deadargelim -instcombine -simplifycfg -ba siccg -prune-eh -inline -argpromotion -simplify-libcalls -instcombine -jump-threading -simplifycfg -domtree -domfrontier -scalarrepl -instcombine -break-crit-...
2008 Dec 04
2
[LLVMdev] 32bit math being promoted to 64 bit
On Thu, Dec 4, 2008 at 7:08 PM, Chris Lattner <clattner at apple.com> wrote: > > On Dec 4, 2008, at 8:58 AM, Villmow, Micah wrote: > > What optimization pass promotes 32 bit math operations to 64 bit operations > so I can disable it? I have code that works fine with optimizations turned > off but fails with it turned on because of this stage. > > > Do you have a
2009 Jan 16
1
[LLVMdev] poolallocation error
...dependencies. > > This is when it in PointerCompress::getAnalysisUsage tries to register > the the BU pass as required. I.e. when > AU.addRequired<CompleteBUDataStructures>(); is called. > > > $ opt -f -load ~/Projects/llvmstuff/opt/poolalloc/lib/ > libpoolalloc.dylib -raiseallocs -poolalloc-passing-all-pools - > pointercompress llist-noopt.bc -o llist-dp.bc > > Assertion failed: ((P->getPotentialPassManagerType() < RequiredPass- > >getPotentialPassManagerType()) && "Unable to handle Pass that > requires lower level Analysis pass"),...
2007 Oct 29
1
[LLVMdev] malloc() vs. MallocInst
...malloc() in my program, until I noticed that it handles calls to > > malloc() > > (eg, stdlib pass) -- but only transforms MallocInst's. > > > > Is there a general policy on how passes should behave? Should they > > handle both > > representations, is doing -raiseallocs the preferred way, or do we > > explicitely not want any single policy (ie, are there any hidden > > problems)? > > Perhaps this could also get a FAQ entry or sth. like that. > > > > Torvald > > _______________________________________________ > > LLVM Devel...
2007 Jul 15
3
[LLVMdev] Floating point constants (bug?)
...For example, NaN's, infinities, and other special values are represented in their IEEE hexadecimal format so that assembly and disassembly do not cause any bits to change in the constants." When I compile the following simple program with llvm-gcc -O0 -c --emit-llvm, run it through opt --raiseallocs --lowerconstexps and llvm-dis, I get a floating point number in hexadecimal that is not one of the above mentioned special forms. #include <stdlib.h> #include <stdio.h> int main() { float f = 5.66; return (int)(f + 1.33); } It will emit: ... store float 0x4016A3D700000000, f...
2009 Jan 19
0
[LLVMdev] poolallocation error
...dependencies. > > This is when it in PointerCompress::getAnalysisUsage tries to register > the the BU pass as required. I.e. when > AU.addRequired<CompleteBUDataStructures>(); is called. > > > $ opt -f -load ~/Projects/llvmstuff/opt/poolalloc/lib/ > libpoolalloc.dylib -raiseallocs -poolalloc-passing-all-pools - > pointercompress llist-noopt.bc -o llist-dp.bc > > Assertion failed: ((P->getPotentialPassManagerType() < RequiredPass- > >getPotentialPassManagerType()) && "Unable to handle Pass that > requires lower level Analysis pass"),...
2009 Jan 21
1
[LLVMdev] poolallocation error
...This is when it in PointerCompress::getAnalysisUsage tries to register >> the the BU pass as required. I.e. when >> AU.addRequired<CompleteBUDataStructures>(); is called. >> >> >> $ opt -f -load ~/Projects/llvmstuff/opt/poolalloc/lib/ >> libpoolalloc.dylib -raiseallocs -poolalloc-passing-all-pools - >> pointercompress llist-noopt.bc -o llist-dp.bc >> >> Assertion failed: ((P->getPotentialPassManagerType() < RequiredPass- >> >getPotentialPassManagerType()) && "Unable to handle Pass that >> requires lower level A...
2010 Jan 13
2
[LLVMdev] Cross-module function inlining
...function inlining is only performed by clang (i.e. only on a module-by-module basis), and not by llvm-link or llc. This can be seen in the resulting pass options with -O3 (obtained using '-Xclang -debug-only=Execution' and '-Xlinker -debug-only=Execution'): Clang: Pass Arguments: -raiseallocs -simplifycfg -domtree -domfrontier -mem2reg -globalopt -globaldce -ipconstprop -deadargelim -instcombine -simplifycfg -basiccg -prune-eh -functionattrs -inline -argpromotion -simplify-libcalls -instcombine -jump-threading -simplifycfg -domtree -domfrontier -scalarrepl -instcombine -break-crit-edges...