Skip to content
  • Chris Lattner's avatar
    Teach the grouper some simple tricks about looking contradictory · c577b816
    Chris Lattner authored
    predicates.  For example if we have:
    
    Scope:
      CheckType i32
        ABC
      CheckType f32
        DEF
      CheckType i32
        GHI
    
    Then we know that we can transform this into:
    Scope:
      CheckType i32
        Scope
          ABC
          GHI
      CheckType f32
        DEF
    
    This reorders the check for the 'GHI' predicate above
    the check for the 'DEF' predidate.  However it is safe to do this
    in this situation because we know that a node cannot have both an
    i32 and f32 type.
    
    We're now doing more factoring that the old isel did.
    
    llvm-svn: 97312
    c577b816
Loading