Skip to content
  1. Jun 18, 2008
  2. Jun 17, 2008
  3. Jun 16, 2008
  4. Jun 14, 2008
  5. Jun 13, 2008
  6. Jun 12, 2008
  7. Jun 11, 2008
  8. Jun 09, 2008
  9. Jun 08, 2008
  10. Jun 07, 2008
    • Evan Cheng's avatar
      Speculatively execute a block when the the block is the then part of a... · 89200c91
      Evan Cheng authored
      Speculatively execute a block when the the block is the then part of a triangle shape and it contains a single, side effect free, cheap instruction. The branch is eliminated by adding a select instruction. i.e.
      
      Turn                                                                                                                                                                                                       
      BB:                                                                                                                                                                                                        
          %t1 = icmp                                                                                                                                                                                             
          br i1 %t1, label %BB1, label %BB2                                                                                                                                                                      
      BB1:                                                                                                                                                                                                       
          %t3 = add %t2, c                                                                                                                                                                                       
          br label BB2                                                                                                                                                                                           
      BB2:                                                                                                                                                                                                       
      =>                                                                                                                                                                                                         
      BB:                                                                                                                                                                                                        
          %t1 = icmp                                                                                                                                                                                             
          %t4 = add %t2, c                                                                                                                                                                                       
          %t3 = select i1 %t1, %t2, %t3
      
      llvm-svn: 52073
      89200c91
  11. Jun 06, 2008
  12. Jun 05, 2008
Loading