Skip to content
  • Lang Hames's avatar
    Add a natural stack alignment field to TargetData, and prevent InstCombine from · de7ab801
    Lang Hames authored
    promoting allocas to preferred alignments that exceed the natural
    alignment. This avoids some potentially expensive dynamic stack realignments.
    
    The natural stack alignment is set in target data strings via the "S<size>"
    option. Size is in bits and must be a multiple of 8. The natural stack alignment
    defaults to "unspecified" (represented by a zero value), and the "unspecified"
    value does not prevent any alignment promotions. Target maintainers that care
    about avoiding promotions should explicitly add the "S<size>" option to their
    target data strings.
    
    llvm-svn: 141599
    de7ab801
Loading