Skip to content
  • Reid Kleckner's avatar
    [SDAGISel] Simplify some SDAGISel code, NFC · 0887d44a
    Reid Kleckner authored
    Hoist entry block code for arguments and swift error values out of the
    basic block instruction selection loop. Lowering arguments once up front
    seems much more readable than doing it conditionally inside the loop. It
    also makes it clear that argument lowering can update StaticAllocaMap
    because no instructions have been selected yet.
    
    Also use range-based for loops where possible.
    
    llvm-svn: 294329
    0887d44a
Loading