Skip to content
  • Reid Spencer's avatar
    For: memory operations -> stores · d37d854c
    Reid Spencer authored
    This is the first incremental patch to implement this feature. It adds no
    functionality to LLVM but setup up the information needed from targets in
    order to implement the optimization correctly. Each target needs to specify
    the maximum number of store operations for conversion of the llvm.memset,
    llvm.memcpy, and llvm.memmove intrinsics into a sequence of store operations.
    The limit needs to be chosen at the threshold of performance for such an
    optimization (generally smallish). The target also needs to specify whether
    the target can support unaligned stores for multi-byte store operations.
    This helps ensure the optimization doesn't generate code that will trap on
    an alignment errors.
    More patches to follow.
    
    llvm-svn: 22468
    d37d854c
Loading