search for: integerdivision

Displaying 3 results from an estimated 3 matches for "integerdivision".

2019 Feb 20
2
proposal for optimization method
...nds to pow(2,32)-1. the idea behind these constants is the following formula: mmi_of(d)*x=x/d+(x%d)*mmi_of(d) now after we generated the constants, we will just emit the following code instead of the former: bool check_remainder(uint32 x) { return ((x*mmi)-s)<=u; } Anyway, I looked at the file IntegerDivision.cpp, it seems to me that this new optimization is more effective then the optimization used there. However, I have no experience with compiler development, so I can just give you my idea. if further explanation is needed, just ask. I tested my method and it gives the correct results. --------------...
2014 Nov 10
3
[LLVMdev] About inlining the modulo function in ARM architecture
Hi Tim, Thanks for your reply. On Mon, Nov 10, 2014 at 1:26 PM, Tim Northover <t.p.northover at gmail.com> wrote: > Hi Ray, > > On 10 November 2014 10:13, Alex S <alexmountain13 at gmail.com> wrote: > > Sorry for bothering those not interested. I found that ARM backend will > > insert a modulo function > > (like __modsi3) instead of the modulo instruction.
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...elease+Asserts build llvm[3]: Compiling LegalizeDAG.cpp for Release+Asserts build llvm[3]: Compiling ThreadSanitizer.cpp for Release+Asserts build llvm[2]: Compiling DivergenceAnalysis.cpp for Release+Asserts build llvm[3]: Compiling InstructionNamer.cpp for Release+Asserts build llvm[3]: Compiling IntegerDivision.cpp for Release+Asserts build llvm[3]: Building Release+Asserts Archive Library libLLVMInstrumentation.a llvm[2]: Compiling DomPrinter.cpp for Release+Asserts build make[3]: Leaving directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/lib/Transforms/Instrumentation' make[2]: Entering directory '/...