Displaying 20 results from an estimated 5000 matches similar to: "[LLVMdev] A case where llvm created different cfg for same code"
2008 Aug 12
1
[LLVMdev] A case where llvm created different cfg for same code
Hi,
The following two segments of code are actually the same,
but llvm created different cfg for them.
Form1:
1 #define N 10
2 int test(int A[N][N])
3 {
4 int i, j;
5 int result =0;
6 for(j=0; j+2<N; ++j) {
7 //for(i=0; i<j && i+j+1<N; i++) {
8 for(i=0; i<j && i<N-j-1; i++) {
9 A[i+j+1][j] = A[j + 2][j-i] + i;
10 }
11 }
12
13 for (i=0; i<N-2; ++i)
14 for (j=0;
2008 Aug 13
4
[LLVMdev] A case where llvm created different cfg for same code
>
> Message: 4
> Date: Tue, 12 Aug 2008 13:23:52 -0700
> From: "Bill Wendling" <isanbard at gmail.com>
> Subject: Re: [LLVMdev] A case where llvm created different cfg for
> same code
> To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu>
> Message-ID:
> <16e5fdf90808121323g1ae2a2e3lb6c5bd62521df621 at mail.gmail.com>
>
2011 Jun 23
0
Loops, Paste, Apply? What is the best way to set up a list of many equations?
Is there a way to apply paste to?list(form1 = EQ1, form2 = EQ2, form3 = EQ3, form4 = EQ4)?such that I don't have to write form1=EQ1 for all my models?(I might have a list of 20 or more)? I also need the EQs to read the formulas associated with them.
For example, below, I was able to automate the name assignment but I could not figure out how to?to set up the list using?paste or other
2012 Mar 25
2
Modal dialogs getting out of focus
Hello,
it is really nice to be here with the wonderful Wine community.
Modal window gets out of focus if minimized and blocks any actions in the main
window.
I've attached and example created in Delphi called Project1. It has Form1
window with action button which opens a modal dialog called Form2.
The main idea is when opened Form2 to be always on top and to be impossible to
hide it behind
2013 Feb 26
1
problem with nested loops
Each of the data sets contains monthly observations on price indices for 7 countries. I use the fitted values from reg1 in the reg2 model. The interior loop executes without error as long as I explicitly specify the data set, i.e. data=dat70. However the code fails to execute if I specify the model in the form of the commented line, i. e reg1 <-dynlm(form1,data=Dnames[j])
I get the following
2011 Jun 21
1
Setting up list of many equations for systemfit
Dear List Members,I am trying to set up a large system of equations and I am trying to find a simple way to set up the list command under the package system fit. Here is the example from system fit and what I am trying to do:
EQ1 <- Y1 ~ X1 + X2 + X4EQ2 <- Y2 ~ X2 + X3EQ3 <- Y3 ~ X2 + X3 + X4EQ4 <- Y4 ~ X1 + X3 + X4eqSystem <-list(form1 = EQ1, form2 = EQ2, form3 = EQ3, form4 = EQ4)
2012 Apr 01
1
indexing in a function doesn't work?
Hello,
I've written a small function that's supposed to save me some time, and
it's ending up killing it- the intention is to iteratively subset a dataset
fram on framevec, fit a model (either lm or nls depending on type) and
return the r2 or AIC from the model, respectively. Although as far as I can
tell in my code the plots are dependent on the fit of the model to the data
and the
2007 Mar 19
1
Forms lost focus in KDE
Hello,
I'm testing a simple delphi application that have 3 forms.
>From FORM1 (the main form) I press a button to show FORM2, then from
FORM2 I press a button to show FORM3, when I close FORM3, FORM1 becomes
focused instead of FORM2.
Every time you close a form or a dialog the application main form
becomes the active one.
This only happend in KDE, allowing windows manager to control the
2008 Apr 23
1
pdf() and histogram() in function call
Here is a function I wrote. It runs no problem, but generate empty pdf
files.
I can't find what is the problem.
create.pdf<- function(x, dir)
{
dir.create(dir, showWarnings = FALSE)
plist<- c("a", "b" , "c", "d")
for(j in plist)
{
filedir<- paste(dir, "/", j, ".pdf",
2010 Nov 10
1
[LLVMdev] Fw: llvm-gcc not compatible with gcc on a small case?
Whoops, forgot to CC: the list.
>
>----- Forwarded Message ----
>From: Samuel Crow <samuraileumas at yahoo.com>
>To: Sheng Zhou <zhousheng00 at gmail.com>
>Sent: Tue, November 9, 2010 9:26:51 PM
>Subject: Re: [LLVMdev] llvm-gcc not compatible with gcc on a small case?
>
>
>Hi Sheng Zhou,
>
>
>It shouldn't compile. You have the method declared
2007 Sep 03
1
unnumbered priorities
Hi:
When should we use "unnumbered priorities"(n) in extensions.What is the different between these 2 forms of extensions.conf? and ,Are both true?
extensions.conf:
form1:
[Conferencerooms]
exten => 333,1,Answer
exten => 333,n,meetme(8000|cim)
exten => 333,n,playback(vm-goodbye)
exten => 333,n,hangup
form2:
[Conferencerooms]
exten => 333,1,Answer
exten =>
2005 Sep 15
1
Javascript object literals -- prototype clash?
I''ve been playing with some ideas in getting the server-side Rails code and
client-side AJAX stuff working nicely together while still providing
fallback for non-js viewers. I''m using Behaviour + prototype.
I was experimenting with using an object literal to define forms that would
be inserted into appropriate divs. Why not just write the forms on the
server side and unhide
2008 Sep 04
3
[LLVMdev] A simple case about SDiv
Hi,
I have a simple C case as following:
int test(int x, int y) {
return -x / -y;
}
With llvm-gcc -O1, I got:
define i32 @test(i32 %x, i32 %y) nounwind {
entry:
sub i32 0, %x ; <i32>:0 [#uses=1]
sub i32 0, %y ; <i32>:1 [#uses=1]
sdiv i32 %0, %1 ; <i32>:2 [#uses=1]
ret i32 %2
}
With llvm-gcc -O2, I got:
define i32 @test(i32 %x, i32 %y) nounwind {
entry:
sdiv i32
2007 Jul 14
2
Using Helpers inside a Controller
I want to use helpers inside a controller method for an AJAX
application. After the page is loaded and displayed, there will be an
asynchronous javascript request to load additional resources such as
html forms and other data.
The controller which handles the request will collect the resources and
send them back in json format.
def get_resources
data=Hash.new
data[:form1]=form_helper1()
2006 Jan 12
5
file_column preview in multistage forms
i have a 2 step form which contains 1 file_column field.
The second form is just "This is how your post will look" kind of form
and the user can click Edit (to take them back to form1) or Submit.
If the user clicks edit it takes them back to the first form with
fields populated. I have it working with all text fields, I just dont
know how to do this with file_column field (showing the
2011 Jun 28
2
How do I output all the R-squares of an SUR? summary(fitSUR$eq[[1:4]])$r.squared does not work
Greetings R Users,
I have a system of equations for which I would like to output all the
R-squares. Assume there are four equations in my system, the only way I
found to output all the R-squares is by calling them out one by one as this:
summary(fitSUR$eq[[1]])$r.squared
summary(fitSUR$eq[[2]])$r.squared
summary(fitSUR$eq[[3]])$r.squared
summary(fitSUR$eq[[4]])$r.squared
But isn't there a
2006 Aug 14
0
How to get the right form to retry for valid input
I have a situation where I have several different methods that put up
forms for the user that all update various parts of the same model.
They could all go through the same "update" method, with a structure
at the end like:
if at-variable.update_attributes(parms)
flash - it worked
else
render action => "The form that got us here"
end
however, its
2006 Oct 17
0
[LLVMdev] Signedness Elminiation
All,
Please welcome Zhou Sheng <zhousheng00 at gmail.com> to the LLVM
development community. Sheng is from Beijing and is a Masters student at
the University there. Sheng and I will be working together on some
significant changes to LLVM in the coming months. Our first task is to
implement integer types without signs in LLVM. You can read Chris
Lattner's notes on this change at this
2010 Nov 10
2
[LLVMdev] llvm-gcc not compatible with gcc on a small case?
I found a case which gcc can compile while llvm-gcc can not. I'm using the
gcc4.1 and the most recent llvm-gcc.
Here is the case:
template <int N>
class T {
public:
int V;
};
T<4> test(T<4> a[4][8]) {
return a[3][3];
}
llvm-gcc dumped:
fail.cpp: In function \u2018T<4> test(T<4> (*)[8])\u2019:
fail.cpp:7: error: invalid use of incomplete type
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