Skip to content
  • Manman Ren's avatar
    Stack Alignment: throw error if we can't satisfy the minimal alignment · 207bcbac
    Manman Ren authored
    requirement when creating stack objects in MachineFrameInfo.
    
    Add CreateStackObjectWithMinAlign to throw error when the minimal alignment
    can't be achieved and to clamp the alignment when the preferred alignment
    can't be achieved. Same is true for CreateVariableSizedObject.
    Will not emit error in CreateSpillStackObject or CreateStackObject.
    
    As long as callers of CreateStackObject do not assume the object will be
    aligned at the requested alignment, we should not have miscompile since
    later optimizations which look at the object's alignment will have the correct
    information.
    
    rdar://12713765
    
    llvm-svn: 172027
    207bcbac
Loading