Displaying 20 results from an estimated 9000 matches similar to: "[LLVMdev] Inefficiency in Intrinsic::getName in Function.cpp?"
2009 Jul 23
0
[LLVMdev] [POTENTIAL API CHANGE] Improving llvm::Value getName()/setName()
Following up on my introduction of the StringRef type, I wanted to
clean up the API for getting and setting the name of an llvm::Value.
There are a number of problems with the current API:
1. There are too many ...Name methods.
2. getName() returns an std::string, which is expensive.
3. getName() is frequently used to derive new names, which are passed
to setName(). Currently this uses
2010 Jul 19
0
[LLVMdev] Function::getName in CallGraphSCCPass causes bus error
Hi Trevor,
> struct Hello : public CallGraphSCCPass {
> static char ID; // Pass identification, replacement for typeid
> Hello() : CallGraphSCCPass(&ID) {}
> virtual bool runOnSCC(std::vector<CallGraphNode *> &SCC) {
> CallGraphNode *node = SCC.front();
> Function *function = node->getFunction();
>
2020 Mar 05
0
[PATCH AUTOSEL 5.5 30/67] vhost: Check docket sk_family instead of call getname
From: Eugenio P?rez <eperezma at redhat.com>
[ Upstream commit 42d84c8490f9f0931786f1623191fcab397c3d64 ]
Doing so, we save one call to get data we already have in the struct.
Also, since there is no guarantee that getname use sockaddr_ll
parameter beyond its size, we add a little bit of security here.
It should do not do beyond MAX_ADDR_LEN, but syzbot found that
ax25_getname writes more
2020 Mar 05
0
[PATCH AUTOSEL 5.4 26/58] vhost: Check docket sk_family instead of call getname
From: Eugenio P?rez <eperezma at redhat.com>
[ Upstream commit 42d84c8490f9f0931786f1623191fcab397c3d64 ]
Doing so, we save one call to get data we already have in the struct.
Also, since there is no guarantee that getname use sockaddr_ll
parameter beyond its size, we add a little bit of security here.
It should do not do beyond MAX_ADDR_LEN, but syzbot found that
ax25_getname writes more
2020 Mar 05
0
[PATCH AUTOSEL 4.19 12/31] vhost: Check docket sk_family instead of call getname
From: Eugenio P?rez <eperezma at redhat.com>
[ Upstream commit 42d84c8490f9f0931786f1623191fcab397c3d64 ]
Doing so, we save one call to get data we already have in the struct.
Also, since there is no guarantee that getname use sockaddr_ll
parameter beyond its size, we add a little bit of security here.
It should do not do beyond MAX_ADDR_LEN, but syzbot found that
ax25_getname writes more
2019 Aug 23
2
LLVM-8.0 | Requesting Help : Function->getName() returns empty string
Hello All,
I am creating a Module and getting Function pointer as below in some
function.
Function *fn = module->getFunction(fnName);
printf("func Name: %s.\n", fn->getName().str().c_str());
.
.
return (intptr_t) fn;
This prints : "func Name: main." I convert the ptr to int and return it.
Later I am receiving this as a Func Handler in other function
2010 Jul 16
2
[LLVMdev] Function::getName in CallGraphSCCPass causes bus error
Hi,
I'm trying to use CallGraphSCCPass, but I keep getting a bus error. I
can reproduce the problem quite easily using the lib/Transforms/Hello
example. I simply mix in these changes:
#include "llvm/CallGraphSCCPass.h"
...
struct Hello : public CallGraphSCCPass {
static char ID; // Pass identification, replacement for typeid
Hello() : CallGraphSCCPass(&ID) {}
2012 Sep 03
1
Possible page inefficiency in do_matrix in array.c
In do_matrix in src/array.c there is a type switch containing :
case LGLSXP :
for (i = 0; i < nr; i++)
for (j = 0; j < nc; j++)
LOGICAL(ans)[i + j * NR] = NA_LOGICAL;
That seems page inefficient, iiuc. Think it should be :
case LGLSXP :
for (j = 0; j < nc; j++)
for (i = 0; i < nr; i++)
LOGICAL(ans)[i + j * NR] = NA_LOGICAL;
or more simply :
case
2005 Jun 24
1
loops in R - about inefficiency
Hi,
Can someone technically explain, why does it take so long with loops in R?
Thanks,
Vehbi Sinan Tunalioglu
2012 Nov 15
3
[LLVMdev] [PATCH] fast-math patches!
New patches with review feedback incorporated:
* Changed single letter flags to short abbreviations ('S' ==> 'nsz')
* Indentation fixes
* Comments don't state function names
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fast-math-flags-added-to-FPMathOperator.patch
Type: application/octet-stream
Size: 4937 bytes
Desc: not
2009 Oct 07
1
Possible inefficiency in encode.c
Hi,
I am very new to Theora, having just started working through the code a few
weeks ago.
I am working on a requantization tool to reduce bit rates, hopefully on the
fly, for some video conferencing work.
As I was working through the encoding phase I noticed this line in encode.c:
for(ti=_enc->dct_token_offs[pli][zzi];ti<ndct_tokens;ti++){
It's around line 804, but I am
2019 Feb 04
0
Inefficiency in df$col
On 04/02/2019 9:20 a.m., Radford Neal wrote:
>>> I think you might want to just delete the definition of $.data.frame,
>>> reverting to the situation before R-3.1.0.
>>
>> I imagine the cause is that the list version is done in C code rather
>> than R code (i.e. there's no R function `$.list`). So an alternative
>> solution would be to also implement
2019 Feb 04
0
Inefficiency in df$col
>>>>> peter dalgaard
>>>>> on Mon, 4 Feb 2019 16:48:12 +0100 writes:
> Does either of you have a patch against current R-devel?
> I tried the obvious, but the build dies with
> building package 'tools'
> all.R is unchanged
> ../../../../library/tools/libs/x86_64/tools.so is unchanged
> installing
2012 Nov 15
0
[LLVMdev] [llvm-commits] [PATCH] fast-math patches!
Trying to apply patches..
What's your base revision?
Joe
On Nov 15, 2012, at 5:44 PM, Michael Ilseman <milseman at apple.com> wrote:
> New patches with review feedback incorporated:
> * Changed single letter flags to short abbreviations ('S' ==> 'nsz')
> * Indentation fixes
> * Comments don't state function names
>
>
2012 Nov 14
4
[LLVMdev] [RFC] Extend LLVM IR to express "fast-math" at a per-instruction level
On Nov 14, 2012, at 12:47 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Nov 14, 2012, at 12:28 PM, Michael Ilseman <milseman at apple.com> wrote:
>
>> I think I missed what problem we're trying to solve here.
>>
>> I'm looking at implementing the bitcode now. I have code to successfully read and write out the LLVM IR textual formal
2008 Apr 24
0
[LLVMdev] FoldingSetNodeID operations inefficiency
Hi Chris,
This is a good idea and I started thinking in that direction already.
But what I don't quite understand the TFs, how TFs are formed and which rules they should obey to.
For example now:
> PendingLoads created by the SelectionDAGLowering::getLoadFrom and then copied into the
> TokenFactor node by SelectionDAGLowering::getRoot called from the
>
2012 Nov 15
2
[LLVMdev] [llvm-commits] [PATCH] fast-math patches!
Though semantically equivalent in this case, however I think you should use logical ors here not bitwise.
+ bool any() {
+ return UnsafeAlgebra | NoNaNs | NoInfs | NoSignedZeros |
+ AllowReciprocal;
+ }
Gripe: This pattern is probably super fast and has precedence… but the code is non-obvious:
SubclassOptionalData =
(SubclassOptionalData & ~BitToSet) | (B * BitToSet);
This is
2019 Feb 03
1
Inefficiency in df$col
While doing some performance testing with the new version of pqR (see
pqR-project.org), I've encountered an extreme, and quite unnecessary,
inefficiency in the current R Core implementation of R, which I think
you might want to correct.
The inefficiency is in access to columns of a data frame, as in
expressions such as df$col[i], which I think are very common (the
alternatives of
2008 Apr 23
1
[LLVMdev] FoldingSetNodeID operations inefficiency
Hi,
While profiling LLVM using my test-cases with huge MBBs, I noticed that
FoldingSetNodeID operations (ComputeHash,insertion,etc) may become
really inefficient for the nodes, which have very many operands.
I can give you an example of what is meant by "very many". In my
test-case (you can fetch it from here
http://llvm.org/bugs/attachment.cgi?id=1275), which is just one HUGE MBB
2019 Feb 04
2
Inefficiency in df$col
> > I think you might want to just delete the definition of $.data.frame,
> > reverting to the situation before R-3.1.0.
>
> I imagine the cause is that the list version is done in C code rather
> than R code (i.e. there's no R function `$.list`). So an alternative
> solution would be to also implement `$.data.frame` in the underlying C
> code. This won't