Skip to content
  1. Aug 19, 2009
  2. Aug 13, 2009
  3. Aug 12, 2009
  4. Aug 11, 2009
  5. Aug 09, 2009
  6. Aug 08, 2009
  7. Aug 06, 2009
  8. Aug 04, 2009
  9. Jul 29, 2009
  10. Jul 28, 2009
  11. Jul 25, 2009
    • Evan Cheng's avatar
      Change Thumb2 jumptable codegen to one that uses two level jumps: · f3a1fce8
      Evan Cheng authored
      Before:
            adr r12, #LJTI3_0_0
            ldr pc, [r12, +r0, lsl #2]
      LJTI3_0_0:
            .long    LBB3_24
            .long    LBB3_30
            .long    LBB3_31
            .long    LBB3_32
      
      After:
            adr r12, #LJTI3_0_0
            add pc, r12, +r0, lsl #2
      LJTI3_0_0:
            b.w    LBB3_24
            b.w    LBB3_30
            b.w    LBB3_31
            b.w    LBB3_32
      
      This has several advantages.
      1. This will make it easier to optimize this to a TBB / TBH instruction +
         (smaller) table.
      2. This eliminate the need for ugly asm printer hack to force the address
         into thumb addresses (bit 0 is one).
      3. Same codegen for pic and non-pic.
      4. This eliminate the need to align the table so constantpool island pass
         won't have to over-estimate the size.
      
      Based on my calculation, the later is probably slightly faster as well since
      ldr pc with shifter address is very slow. That is, it should be a win as long
      as the HW implementation can do a reasonable job of branch predict the second
      branch.
      
      llvm-svn: 77024
      f3a1fce8
  12. Jul 23, 2009
  13. Jul 22, 2009
  14. Jul 14, 2009
  15. Jul 11, 2009
    • Evan Cheng's avatar
      Major changes to Thumb (not Thumb2). Many 16-bit instructions either modifies... · cd4cdd11
      Evan Cheng authored
      Major changes to Thumb (not Thumb2). Many 16-bit instructions either modifies CPSR  when they are outside the IT blocks, or they can predicated when in Thumb2. Move the implicit def of CPSR to an optional def which defaults CPSR. This allows the 's' bit to be toggled dynamically.
      
      A side-effect of this change is asm printer is now using unified assembly. There are some minor clean ups and fixes as well.
      
      llvm-svn: 75359
      cd4cdd11
  16. Jul 10, 2009
  17. Jul 08, 2009
  18. Jul 07, 2009
  19. Jul 02, 2009
  20. Jun 29, 2009
    • David Goodwin's avatar
      Rename ARMcmpNZ to ARMcmpZ and use it to represent comparisons that set only... · dbf11ba8
      David Goodwin authored
      Rename ARMcmpNZ to ARMcmpZ and use it to represent comparisons that set only the Z flag (i.e. eq and ne). Make ARMcmpZ commutative.
      
      llvm-svn: 74423
      dbf11ba8
    • Evan Cheng's avatar
      Implement Thumb2 ldr. · b23b50d5
      Evan Cheng authored
      After much back and forth, I decided to deviate from ARM design and split LDR into 4 instructions (r + imm12, r + imm8, r + r << imm12, constantpool). The advantage of this is 1) it follows the latest ARM technical manual, and 2) makes it easier to reduce the width of the instruction later. The down side is this creates more inconsistency between the two sub-targets. We should split ARM LDR instruction in a similar fashion later. I've added a README entry for this.
      
      llvm-svn: 74420
      b23b50d5
  21. Jun 26, 2009
  22. Jun 25, 2009
Loading