search for: subtracion

Displaying 2 results from an estimated 2 matches for "subtracion".

Did you mean: subtraction
2012 Jan 05
3
[LLVMdev] Integer factorizations in clang
...one multiplication (-O3) which is normally good for most architectures. But in my case, that pattern takes just one instruction and I would like to recover it as is. Where can I find this particular optimization in clang ? Is there a way of setting multiplications as being cheaper than additions/subtracions in clang ? Thanks in advance, Ivan
2012 Jan 05
0
[LLVMdev] Integer factorizations in clang
...which is > normally good for most architectures. But in my case, that pattern takes > just one instruction and I would like to recover it as is. > Where can I find this particular optimization in clang ? > Is there a way of setting multiplications as being cheaper than > additions/subtracions in clang ? Wouldn't it be simpler to detect factorize pattern in you code and generate the appropriate instruction as it if was a decomposed form. It would have the benefit to properly optimize the code if the developer choose to use the factorized form directly. -- Jean-Daniel