search for: targetlibinfo

Displaying 20 results from an estimated 60 matches for "targetlibinfo".

2020 Aug 11
2
opt - replicating multiple passes from -O3 -debug-pass=Executions
...n my run has additional 'TargetLibrary Information', 'Target Pass Configuration' and the 'Module Pass Manager' entries compared to O3 (copied below). My output shows the 'Pass Arguments:' line has automatically added -targetpassconfig -verify -writebitcode, and the -targetlibinfo flag was moved to the start. Is there a way I can address these differences to enable replicating the -O3 first and second passes using opt flags? Thanks for considering this, -Chad (Opt -O3 first pass) Pass Arguments: -tti -tbaa -scoped-noalias -assumption-cache-tracker -targetlibinfo -verify...
2015 Jan 17
3
[LLVMdev] loop multiversioning
...with clang++ -O3 -mllvm -debug-pass=Arguments program.c -c bash-4.1$ clang++ -O3 -mllvm -debug-pass=Arguments fast_algorithms.c -c clang-3.6: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated Pass Arguments: -datalayout -notti -basictti -x86tti -targetlibinfo -no-aa -tbaa -scoped-noalias -assumption-tracker -basicaa -verify -add-discriminators -simplifycfg -domtree -sroa -early-cse -lower-expect Pass Arguments: -datalayout -notti -basictti -x86tti -targetlibinfo -no-aa -tbaa -scoped-noalias -assumption-tracker -basicaa -verify-di -ipsccp -globalopt -de...
2019 May 09
2
Is it possible to reproduce the result of opt -O3 manually?
...al is to produce the IR identical to linpack-pc-3.ll by passing a sequence of optimizations to opt. To get the list of optimizations used by opt for O3, I run this: opt -O3 -disable-output -debug-pass=Arguments linpack-pc.ll Which produces (shortened to avoid wasting space): Pass Arguments: -tti -targetlibinfo -tbaa ... Pass Arguments: -targetlibinfo -tti -tbaa ... Pass Arguments: -domtree So apparently there are three sequences of passes applied to IR as part of O3. I wasn't able to reproduce the same IR as linpack-pc-3.ll using these passes, I tried applying passes sequentially or concatenating...
2013 Aug 19
1
[LLVMdev] How to disbale loop-rotate in opt -O3 ?
...ce code (the latter should still be eliminated). Since I found no clues on how distinguish such loops, I tried to disable loop-rotate. For this purpose, I got the list of passes executed by O3, I eliminate loop-rotate and I call the reduced list of passes from opt: opt -targetdata -no-aa -tbaa -targetlibinfo -basicaa -preverify -domtree -verify -simplifycfg -domtree -scalarrepl -early-cse -lower-expect -targetlibinfo -targetdata -no-aa -tbaa -basicaa -globalopt -ipsccp -deadargelim -instcombine -simplifycfg -basiccg -prune-eh -inline -functionattrs -argpromotion -scalarrepl-ssa -domtree -early-cse -sim...
2015 May 11
2
[LLVMdev] about MemoryDependenceAnalysis usage
...attached my pass. > > I call my pass like this: "opt -o /dev/null -S test.ll -load libPlaydep.so > -O3 -playdep --debug-pass=Structure" > And the output: > > opt -o /dev/null test.ll -S -load ./libPlaydep.so -O3 -playdep > --debug-pass=Structure > Pass Arguments: -targetlibinfo -datalayout -notti -basictti -x86tti -no-aa > -tbaa -scoped-noalias -assumption-cache-tracker -basicaa -verify-di -ipsccp > -globalopt -deadargelim -domtree -instcombine -simplifycfg -basiccg > -prune-eh -inline-cost -inline -functionattrs -argpromotion -sroa -domtree > -early-cse -lazy...
2016 May 09
2
Some questions about phase ordering in OPT and LLC
...ntu-15.10/bin/llvm-as < /dev/null | /opt/clang+llvm-3.7.1-x86_64-linux-gnu-ubuntu-15.10/bin/opt -O3 -march=sparc -mcpu=v8 -disable-output -debug-pass=Arguments > > > > I get the following output: > > Pass Arguments: -tti -no-aa -tbaa -scoped-noalias -assumption-cache-tracker -targetlibinfo -basicaa -verify -simplifycfg -domtree -sroa -early-cse -lower-expect > > Pass Arguments: -targetlibinfo -tti -no-aa -tbaa -scoped-noalias -assumption-cache-tracker -basicaa -ipsccp -globalopt -deadargelim -domtree -instcombine -simplifycfg -basiccg -prune-eh -inline-cost -inline -functionat...
2019 May 13
2
Is it possible to reproduce the result of opt -O3 manually?
...by passing >> a sequence of optimizations to opt. To get the list of optimizations used >> by opt for O3, I run this: >> opt -O3 -disable-output -debug-pass=Arguments linpack-pc.ll >> >> Which produces (shortened to avoid wasting space): >> Pass Arguments: -tti -targetlibinfo -tbaa ... >> Pass Arguments: -targetlibinfo -tti -tbaa ... >> Pass Arguments: -domtree >> >> So apparently there are three sequences of passes applied to IR as part >> of O3. I wasn't able to reproduce the same IR as linpack-pc-3.ll using >> these passes, I...
2016 May 09
4
Some questions about phase ordering in OPT and LLC
...-3.7.1-x86_64-linux-gnu-ubuntu-15.10/bin/llvm-as < /dev/null | /opt/clang+llvm-3.7.1-x86_64-linux-gnu-ubuntu-15.10/bin/opt -O3 -march=sparc -mcpu=v8 -disable-output -debug-pass=Arguments I get the following output: Pass Arguments: -tti -no-aa -tbaa -scoped-noalias -assumption-cache-tracker -targetlibinfo -basicaa -verify -simplifycfg -domtree -sroa -early-cse -lower-expect Pass Arguments: -targetlibinfo -tti -no-aa -tbaa -scoped-noalias -assumption-cache-tracker -basicaa -ipsccp -globalopt -deadargelim -domtree -instcombine -simplifycfg -basiccg -prune-eh -inline-cost -inline -functionattrs -a...
2018 Feb 02
2
Debug info error on bitcode inline modification
...er $ ./inliner test.bc ----------------------------------------------------------------- * Applying -always-inline pass (Debug info error occurs) ----------------------------------------------------------------- $ opt -debug-pass=Structure -always-inline test.bc -o test.bc.inline Pass Arguments: -targetlibinfo -tti -assumption-cache-tracker -basiccg -always-inline -verify Target Library Information Target Transform Information Assumption Cache Tracker ModulePass Manager CallGraph Construction Call Graph SCC Pass Manager Inliner for always_inline functions FunctionPass Manager...
2020 Aug 05
2
llc -O2 vs. llc -O3 --> same debug-pass=Executions but output.obj differs?
Hello, I'm trying to minimize the processing time for llc -O3 by using a three step compilation process of 1. llc input.bc -stopafter=targetlibinfo -o input.mir 2. llc -run-pass={....min passes...} input.mir -o opt.mir 3. llc -startafter=machine-opt-remark-emitter -filetype=obj opt.mir -o final.obj Examining the passes produced by llc for O1,O2,O3 I compared (with XXX = {1,2,3}): llc input.bc -filetype=obj -OXXX -o XXXfinal.obj -debug-pas...
2015 Dec 02
5
Is there a way to pass Optimization passes to clang?
...here a testcase fails with -O1 optimization and passes with -O0 optimization. I got a list of optimization passes being performed when 'clang -O1' is called like this: llvm-as < /dev/null | opt -O1 -disable-output -debug-pass=Arguments Which results in: Pass Arguments: -no-aa -tbaa -targetlibinfo -basicaa -notti -preverify -domtree -verify -simplifycfg -domtree -sroa -early-cse -lower-expect Pass Arguments: -targetlibinfo -no-aa -tbaa -basicaa -notti -globalopt -ipsccp -deadargelim -instcombine -simplifycfg -basiccg -prune-eh -inline-cost -always-inline -functionattrs -sroa -domtree -early...
2011 Oct 22
5
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...del: posix Seems like it tries to load a symbol that it doesn't find ... I have synchronized all clang/llvm/polly to the latest version and I compiled them all together. Loading polly with "opt" works strangely ... : opt -S -load ${PATH_TO_POLLY_LIB}/LLVMPolly.dylib -mem2reg -no-aa -targetlibinfo -tbaa -basicaa -preverify -domtree -verify -mem2reg -instcombine -simplifycfg -tailcallelim -simplifycfg -reassociate -domtree -loops -loop-simplify -lcssa -loop-rotate -instcombine -scalar-evolution -loop-simplify -lcssa -indvars -polly-prepare -postdomtree -domfrontier -regions -polly-region-simp...
2015 May 09
2
[LLVMdev] about MemoryDependenceAnalysis usage
Hi, I try to use MemoryDependenceAnalysis in a pass to analyse a simple function: void fct (int *restrict*restrict M, int *restrict*restrict L) { S1: M[1][1] = 1; S2: L[2][2] = 2; } When I iterate over MemoryDependenceAnalysis on the S2 statement, I get the load instruction for the first depth of the array, that’s ok. But I get also the load and store for the S1 statement. I assume the
2015 Aug 05
2
Fwd: How to use CostModel?
...each IR Instruction. To get a feel for what kind of output the CostModel pass gives, I ran it on the command line like so: $ cat test.c int main(){ int r = rand(); if (r > 1){ return ++r; } return r*86; } $ clang-3.6 -S -emit-llvm test.c -o test.bc $ opt-3.6 -analyze -targetlibinfo -cost-model ./test.bc Printing analysis 'Target Library Information': Pass::print not implemented for pass: 'Target Library Information'! Printing analysis 'Cost Model Analysis' for function 'main': Cost Model: Unknown cost for instruction: %1 = alloca i32, align 4...
2018 Feb 02
0
Debug info error on bitcode inline modification
...---------------------------------------------------------------- > > * Applying -always-inline pass (Debug info error occurs) > ----------------------------------------------------------------- > $ opt -debug-pass=Structure -always-inline test.bc -o test.bc.inline > Pass Arguments: -targetlibinfo -tti -assumption-cache-tracker -basiccg > -always-inline -verify > Target Library Information > Target Transform Information > Assumption Cache Tracker > ModulePass Manager > CallGraph Construction > Call Graph SCC Pass Manager > Inliner for always_inline fun...
2012 Feb 02
0
[LLVMdev] Opt ...the pass manager utility
...y using my experience.. Here i was trying to understand the analysis and transformation phase in steps using opt utility and i'm stalled here. i.e run the utility on sample by --basicaa switch and output was $ opt -f -S -basicaa -gvn -dse -debug-pass=Structure test4.s Pass Arguments: -targetlibinfo -targetdata -no-aa -basicaa -domtree -memdep -gvn -memdep -dse -preverify -verify -print-module Target Library Information Target Data Layout *No Alias Analysis (always returns 'may' alias)* Basic Alias Analysis (stateless AA impl) ModulePass Manager FunctionPass Manager Dominat...
2018 Feb 05
1
Debug info error on bitcode inline modification
...-------------------------------------------- >> >> * Applying -always-inline pass (Debug info error occurs) >> ----------------------------------------------------------------- >> $ opt -debug-pass=Structure -always-inline test.bc -o test.bc.inline >> Pass Arguments: -targetlibinfo -tti -assumption-cache-tracker -basiccg >> -always-inline -verify >> Target Library Information >> Target Transform Information >> Assumption Cache Tracker >> ModulePass Manager >> CallGraph Construction >> Call Graph SCC Pass Manager >>...
2012 Jun 12
2
[LLVMdev] How to use LLVM optimizations with clang
Thanks again. I executed the following command line llc -O3 comb.ll.bc -debug-pass=Arguments and got Pass Arguments: -targetdata -targetpassconfig -no-aa -tbaa -targetlibinfo -basicaa -collector-metadata -machinemoduleinfo -machine-branch-prob -preverify -domtree -verify -loops -loop-simplify -scalar-evolution -loop-simplify -iv-users -loop-reduce -gc-lowering -unreachableblockelim -codegenprepare -stack-protector -preverify -domtree -verify -loops -branch-prob -expand-...
2011 Oct 23
0
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...es to load a symbol that it doesn't find ... > I have synchronized all clang/llvm/polly to the latest version and I > compiled them all together. Loading polly with "opt" works strangely > ... : > > opt -S -load ${PATH_TO_POLLY_LIB}/LLVMPolly.dylib -mem2reg -no-aa > -targetlibinfo -tbaa -basicaa -preverify -domtree -verify -mem2reg > -instcombine -simplifycfg -tailcallelim -simplifycfg -reassociate > -domtree -loops -loop-simplify -lcssa -loop-rotate -instcombine > -scalar-evolution -loop-simplify -lcssa -indvars -polly-prepare > -postdomtree -domfrontier -region...
2011 Nov 15
1
[LLVMdev] opt -O2 optimization passes
...are performed at -O2 by opt. So I used following command: llvm-as < /dev/null | opt -O2 -std-compile-opts -disable-output -debug-pass=Arguments I've got following output for LLVM opt 2.9: Pass Arguments: -no-aa -tbaa -basicaa -simplifycfg -domtree -scalarrepl -early-cse Pass Arguments: -targetlibinfo -no-aa -tbaa -basicaa -preverify -domtree -verify -lowersetjmp -globalopt -ipsccp -deadargelim -instcombine -simplifycfg -basiccg -prune-eh -inline -functionattrs -argpromotion -scalarrepl-ssa -domtree -early-cse -simplify-libcalls -lazy-value-info -jump-threading -correlated-propagation -simplifyc...