leonhd / unladen-swallow

Automatically exported from code.google.com/p/unladen-swallow
Other
1 stars 1 forks source link

Change optimized binary operations to use llvm overflow intrinsics #119

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The optimized binary operations currently use C style overflow checking.

LLVM supports several provides several intrinsics for arithmetics with
overflow which have access to registers and flags which are not exposed in
C. Using these intrinsics may be faster than our current method.

Preliminary research showed that they are not supported by clang. One
possibility would be to create the necessary function by hand in the global
module initialisation.

Original issue reported on code.google.com by joerg...@gmail.com on 14 Jan 2010 at 10:42

GoogleCodeExporter commented 8 years ago

Original comment by collinw on 14 Jan 2010 at 10:43