search for: roundtodouble

Displaying 4 results from an estimated 4 matches for "roundtodouble".

2013 Dec 24
2
[LLVMdev] Quirk in switch lowering
...reate an else-if chain from a very sparse switch statement instead of a balanced binary tree. A possible solution is to weight an isolated single switch label with 0. To do this one can replace the assignments to LDensity und RDensity by: volatile double LDensity = (double)(LSize-1).roundToDouble() / (LEnd - First + 1ULL).roundToDouble(); volatile double RDensity = (double)(RSize-1).roundToDouble() / (Last - RBegin + 1ULL).roundToDouble(); I replaced ?Size by (?Size-1). Here is a more or less stupid test program (translat...
2012 May 15
1
[LLVMdev] SIV tests in LoopDependence Analysis, Sanjoy's patch
...test > > If you have any thoughts about this code, I'd be very interested in > hearing them. One issue: don't use floating-point in LLVM. We want LLVM to behave the same on different computers, and practically that means avoiding floats. This code: double TMUL = BM.sdiv(G).roundToDouble(true); if (TMUL > 0) { TL = fmax(TL, (-X).roundToDouble(true) / TMUL); from the RDIV test is not okay. You can use APFloat if you like, that's our soft-coded float library that produces reproducible results. Nick > I'm going to take a break from working on these low-le...
2012 May 14
0
[LLVMdev] SIV tests in LoopDependence Analysis, Sanjoy's patch
On Sat, Apr 21, 2012 at 6:08 AM, Sanjoy Das <sanjoy at playingwithpointers.com> wrote: > > Sorry for having been quiet for so long, I have my university exams > going on, and will be able to contribute only after the coming Friday. Gents, While you've been fooling around with exams, I have been focused with laser-like intensity, or something... Here are new versions of 4 SIV
2012 Apr 21
3
[LLVMdev] SIV tests in LoopDependence Analysis, Sanjoy's patch
Hi all, Sorry for having been quiet for so long, I have my university exams going on, and will be able to contribute only after the coming Friday. Thanks! -- Sanjoy Das http://playingwithpointers.com