Skip to content
  1. Sep 27, 2012
  2. Sep 26, 2012
  3. Sep 25, 2012
  4. Sep 21, 2012
  5. Sep 19, 2012
  6. Sep 18, 2012
  7. Sep 17, 2012
  8. Sep 15, 2012
    • Manman Ren's avatar
      PGO: preserve branch-weight metadata when simplifying two branches with a common · bfb9d435
      Manman Ren authored
      destination.
      
      Updated previous implementation to fix a case not covered:
      // PBI: br i1 %x, TrueDest, BB
      // BI:  br i1 %y, TrueDest, FalseDest
      The other case was handled correctly.
      // PBI: br i1 %x, BB, FalseDest
      // BI:  br i1 %y, TrueDest, FalseDest
      
      Also tried to use 64-bit arithmetic instead of APInt with scale to simplify the
      computation. Let me know if you have other opinions about this.
      
      llvm-svn: 163954
      bfb9d435
  9. Sep 14, 2012
  10. Sep 12, 2012
  11. Sep 11, 2012
  12. Sep 10, 2012
  13. Sep 08, 2012
  14. Sep 07, 2012
  15. Sep 06, 2012
    • Manman Ren's avatar
      Release build: guard dump functions with "ifndef NDEBUG" · c3366cce
      Manman Ren authored
      No functional change.
      
      llvm-svn: 163344
      c3366cce
    • Hans Wennborg's avatar
      Fix switch_to_lookup_table.ll test from r163302. · feb4d07d
      Hans Wennborg authored
      The lookup tables did not get built in a deterministic order.
      This makes them get built in the order that the corresponding phi nodes
      were found.
      
      llvm-svn: 163305
      feb4d07d
    • Hans Wennborg's avatar
      Build lookup tables for switches (PR884) · 8a62fc52
      Hans Wennborg authored
      This adds a transformation to SimplifyCFG that attemps to turn switch
      instructions into loads from lookup tables. It works on switches that
      are only used to initialize one or more phi nodes in a common successor
      basic block, for example:
      
        int f(int x) {
          switch (x) {
          case 0: return 5;
          case 1: return 4;
          case 2: return -2;
          case 5: return 7;
          case 6: return 9;
          default: return 42;
        }
      
      This speeds up the code by removing the hard-to-predict jump, and
      reduces code size by removing the code for the jump targets.
      
      llvm-svn: 163302
      8a62fc52
Loading