[LLVMdev] Memset/memcpy: user control of loop-idiom recognizer
Robert Lougher
rob.lougher at gmail.com
Tue Dec 2 12:08:27 PST 2014
On 2 December 2014 at 19:57, Joerg Sonnenberger <joerg at britannica.bec.de> wrote:
> On Tue, Dec 02, 2014 at 07:23:01PM +0000, Robert Lougher wrote:
>> In feedback from game studios a common issue is the replacement of
>> loops with calls to memcpy/memset. These loops are often
>> hand-optimised, and highly-efficient and the developers strongly want
>> a way to control the compiler (i.e. leave my loop alone).
>
> I doubt that. If anything, it means the lowering of the intrinsic is
> bad, not that the transformation should not happen.
>
> Joerg
Yes, that's why I talked about variable and constant trip-counts. For
constant loops there generally isn't a problem, as they can be lowered
inline (if small). Variable loops, however, get expanded into a
library call.
Rob.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list