[LLVMdev] Memset/memcpy: user control of loop-idiom recognizer

Joerg Sonnenberger joerg at britannica.bec.de
Tue Dec 2 11:57:00 PST 2014


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



More information about the llvm-dev mailing list