Skip to content
  • Chris Lattner's avatar
    Rewrite the branch selector to be correct in the face of large functions. · 542dfd55
    Chris Lattner authored
    The algorithm it used before wasn't 100% correct, we now use an iterative
    expansion model.  This fixes assembler errors when compiling 403.gcc with
    tail merging enabled.
    
    Change the way the branch selector works overall: Now, the isel generates
    PPC::BCC instructions (as it used to) directly, and these BCC instructions
    are emitted to the output or jitted directly if branches don't need
    expansion.  Only if branches need expansion are instructions rewritten
    and created.  This should make branch select faster, and eliminates the
    Bxx instructions from the .td file.
    
    llvm-svn: 31837
    542dfd55
Loading