Skip to content
  • Chandler Carruth's avatar
    [PM] Remove the Pass argument from all of the critical edge splitting · 37df2cfb
    Chandler Carruth authored
    APIs and replace it and numerous booleans with an option struct.
    
    The critical edge splitting API has a really large surface of flags and
    so it seems worth burning a small option struct / builder. This struct
    can be constructed with the various preserved analyses and then flags
    can be flipped in a builder style.
    
    The various users are now responsible for directly passing along their
    analysis information. This should be enough for the critical edge
    splitting to work cleanly with the new pass manager as well.
    
    This API is still pretty crufty and could be cleaned up a lot, but I've
    focused on this change just threading an option struct rather than
    a pass through the API.
    
    llvm-svn: 226456
    37df2cfb
Loading