Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] LLVM Alias Analysis"
2015 Apr 10
2
[LLVMdev] LLVM Alias Analysis
Hi Xin,
Thank you for your reply!
I have tried the 3 alias analyses you have mentioned on LLVM 3.5:
1) $ opt -globalsmodref-aa -aa-eval < xxx.bc > /dev/null
(May-alias response 100%)
2) $ opt -tbaa -aa-eval < xxx.bc > /dev/null
(May-alias response 100%)
3) $ opt -cfl-aa -aa-eval < xxx.bc> /dev/null
(Unknown command line argument '-cfl-aa')
It seems that they are not
2015 Jul 13
2
[LLVMdev] enable globalsmodref-aa by default
Hello
I am trying to enable globalsmodref-aa by default. globalmodref-aa is a
ModulePass and therefore can be invalidated and need to be rerun.
I see globalsmodref-aa is enabled in LTO passmanager by adding the analysis
pass explicitly. I wonder whether globalsmodref-aa can be enabled/run based
on pass dependencies, i.e. those indicated in getAnalysisUsage().
Thanks,
Xin
-------------- next
2013 May 08
1
[LLVMdev] How to avoid loopverify failures after replacing the backedge with an edge(latchBB to exitBB) in a looppass?
Sorry for forgetting to reply all...
It works! Thank you very much!
But I also wonder how do you know this function will work while there are
no documents noticing that. I try learning LLVM by reading its code, but
soon feel lost in so many functions. Just like I have many tools, but don't
know which to use and what difference it could make. Is there some better
ways to learn LLVM?
On Wed,
2013 May 08
0
[LLVMdev] How to avoid loopverify failures after replacing the backedge with an edge(latchBB to exitBB) in a looppass?
On May 7, 2013, at 8:26 PM, zhiyuan yang <sjtu.yzy at gmail.com> wrote:
> Hi,
>
> I am writing a loop pass to replace the backedge with an edge from latch to exit.
> Now I just replace the terminator of latch with another BranchInst, and the loop will not be a loop after my pass. However, it turns out a failure of loopverify after executing my pass:
>
> opt:
2015 May 05
2
[LLVMdev] llvm DSA - reproduce the result in PLDI 07 paper
Dear John,
I intend to implement the improvements on DSA.
After running DSA on SPEC, I found DSA gives low precision for mcf and
bzip2.
I have checked the most imprecise c files in mcf an found that the code
seems to be a mixture of "PHI" and "GEP" instructions.
Could you please give me some hints about what the big picture of the
improvement should be and how to start?
Thank
2014 Jul 07
2
a question about optim.R and optim.c in R
Hi, I am learning R by reading R source code. Here is one question I have
about the optim function in R.
The context : In the optim.R, after all the prep steps, the main function
call call is made via :
.External2(C_optim, par, fn1, gr1, method, con, lower, upper).
So, it seems to me, to follow what is going on from here, that I should
read the optim function in \src\library\stats\src\optim.c
2013 May 08
2
[LLVMdev] How to avoid loopverify failures after replacing the backedge with an edge(latchBB to exitBB) in a looppass?
Hi,
I am writing a loop pass to replace the backedge with an edge from latch to
exit.
Now I just replace the terminator of latch with another BranchInst, and the
loop will not be a loop after my pass. However, it turns out a failure of
loopverify after executing my pass:
opt: ~/llvm/llvm-trunk/include/llvm/Analysis/LoopInfoImpl.h:297: void
llvm::LoopBase<N, M>::verifyLoop() const [with
2013 May 12
2
[LLVMdev] LLVM ERROR: Cannot select
Duncan,
Is there a way (switch) for embedding original source code in the generated
.s file?
thanks,
ZY
On Sun, May 12, 2013 at 4:12 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi ZY,
>
>
> On 11/05/13 22:21, Zhiyuan Ren wrote:
>
>> Duncan,
>>
>> here is part of the assembly around the problem area. I used gcc -S -flto
>> to
>> generate
2013 May 12
0
[LLVMdev] LLVM ERROR: Cannot select
Hi ZY,
On 11/05/13 22:21, Zhiyuan Ren wrote:
> Duncan,
>
> here is part of the assembly around the problem area. I used gcc -S -flto to
> generate the .s file, llvm-as on the .s fiile will show error: invalid cast
> opcode for cast from 'i40' to 'float' %638 = trunc i40 %637 to float
>
> %633 = bitcast i8* %632 to float*
> %634 = bitcast float* %633 to
2009 Nov 17
3
Calculating the power of a negative number
Hello,
I use R a lot, one thing bugs me is that when I try the following
> x<- -8
> x^(1/3)
[1] NaN
However, it is fine with -8^(1/3). Priority goes to the power. Can you help
me out for this? Thanks.
Best,
Zhiyuan J. ZHENG
Ph.D. Candidate
Economic Department
Virginia Polytechnic Institute and State University
Phone: 540-231-5120 , Blacksburg, VA, 24060
2015 Apr 06
2
[LLVMdev] llvm DSA - reproduce the result in PLDI 07 paper
Dear all,
I am trying to reproduce the "Percent May Alias" result described in PLDI
07's paper "Making Context-Sensitive Points-to Analysis with Heap Cloning
Practical For The Real World" (http://llvm.org/pubs/2007-06-10-PLDI-DSA.html
).
However, my "Percent May Alias" for all the benchmarks is much greater,
especially "bzip2".
The DSA code I use is
2015 Jul 14
5
[LLVMdev] RFC: A plan for stateful alias analysis in LLVM
# Front matter #
First, I want to emphasize that this is not a short-term plan. This is a
long-term plan. When I was looking at refactoring the existing Alias
Analysis infrastructure in LLVM in ways that would break stateful AA, Hal
Finkel asked me to figure out how things would work with the new pass
manager and make sure that was sane.
This plan assumes the new pass manager. There is nothing
2016 Mar 15
5
Existing studies on the benefits of pointer analysis
Dear llvm devs,
tl;dr: What prevents llvm from switching to a fancier pointer analysis?
Currently, there exists a variety of general-purpose alias analyses in
the LLVM codebase: basic-aa, globalsmodref-aa, tbaa, scev-aa, and
cfl-aa. However, only the first three are actually turned on when
invoking clang with -O2 or -O3 (please correct me if I'm wrong about this).
If one looks at
2013 May 11
3
[LLVMdev] LLVM ERROR: Cannot select
Duncan,
here is part of the assembly around the problem area. I used gcc -S -flto
to generate the .s file, llvm-as on the .s fiile will show error: invalid
cast opcode for cast from 'i40' to 'float' %638 = trunc i40 %637 to float
%633 = bitcast i8* %632 to float*
%634 = bitcast float* %633 to i40*
%635 = load i40* %634, align 1
%636 = shl i40 %635, 7
%637 = ashr i40
2015 Apr 25
3
[LLVMdev] alias analysis on llvm internal globals
Hi
I have this program in which fooBuf can only take on NULL or the
address of local_fooBuf, and fooBuf and local_fooBuf have scope of the
foo function.
Therefore there is no way for the fooPtr argument to alias with
fooBuf. However, LLVM basicaa and globalsmodref-aa say the 2 pointers
may alias.
I am thinking whether i should implement a limited form of point-to
alias on the fooBuf pointer in
2013 May 11
0
[LLVMdev] LLVM ERROR: Cannot select
Hi ZY,
On 11/05/13 20:37, Zhiyuan Ren wrote:
> Duncan,
>
> Thanks for getting back to me. I am not sure how to find the original bitcode
> (and related Ada source code) that causes the truncate. This is the error
> message that gcc gave me when I tried to compile an Ada source file using
> dragonegg plugin (gcc -c -fplugin...).
use -S instead of -c and add -flto
The resulting
2016 Mar 21
6
Existing studies on the benefits of pointer analysis
Hi Daniel,
On 03/21/2016 11:05 AM, Daniel Berlin wrote:
>
>
> On Tue, Mar 15, 2016 at 1:37 PM, Jia Chen via llvm-dev
> <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>
> Dear llvm devs,
>
> tl;dr: What prevents llvm from switching to a fancier pointer
> analysis?
>
>
> Nothing.
>
>
> Currently,
2013 May 11
2
[LLVMdev] LLVM ERROR: Cannot select
Duncan,
Thanks for getting back to me. I am not sure how to find the original
bitcode (and related Ada source code) that causes the truncate. This is the
error message that gcc gave me when I tried to compile an Ada source file
using dragonegg plugin (gcc -c -fplugin...).
ZY
ps, sorry for multiple emails, trying to find out how to reply to a thread
in the mailing list
On Sat, May 11, 2013 at
2015 Jul 02
2
[LLVMdev] AliasAnalysis update interface - a tale of sorrow and woe
----- Original Message -----
> From: "Hal Finkel" <hfinkel at anl.gov>
> To: "Chandler Carruth" <chandlerc at gmail.com>
> Cc: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu>, "Daniel Berlin" <dannyb at google.com>
> Sent: Thursday, July 2, 2015 3:14:38 PM
> Subject: Re: AliasAnalysis update interface - a tale
2012 Feb 12
3
[LLVMdev] llvm interprocedural analysis and optimization
If I turn on one of the llvm interprocedural optimizations without
turning on the analysis it uses. will the analysis be turned on
automatically ?
Thanks
Xin