[PATCH] D26090: [NVPTX] Compute 'rem' using the result of 'div', if possible.
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 29 13:07:14 PDT 2016
joerg added a comment.
We've been talking about this on IRC. It would be nice to have this as target-independent option, since on many platforms a generic rem is much slower than a div followed by a multiply/subtract. Only platforms with very slow hardware multiply want to use div and rem as separate instructions.
More information about the llvm-commits