llvm-6502/lib
Chris Lattner aa43e9f73b Fix a bug which caused us to never be able to use signed comparisons for
equality comparisons of a constant.  This allows us to codegen the 'sintzero'
loop in PR1288 as:

LBB1_1: ;cond_next
        li r4, 0
        addi r2, r2, 1
        stw r4, 0(r3)
        addi r3, r3, 4
        cmpwi cr0, r2, -1
        bne cr0, LBB1_1 ;cond_next

instead of:

LBB1_1: ;cond_next
        addi r2, r2, 1
        li r4, 0
        xoris r5, r2, 65535
        stw r4, 0(r3)
        addi r3, r3, 4
        cmplwi cr0, r5, 65535
        bne cr0, LBB1_1 ;cond_next

This implements CodeGen/PowerPC/compare-simm.ll, and also cuts 74
instructions out of kc++.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35590 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-02 05:59:42 +00:00
..
Analysis Treat xor of signbit like an add. 2007-04-02 05:41:38 +00:00
Archive For PR789: 2007-03-29 19:05:44 +00:00
AsmParser For PR1289: Regenerate 2007-03-30 01:37:39 +00:00
Bytecode For PR789: 2007-03-29 19:05:44 +00:00
CodeGen For PR1297: 2007-04-02 01:01:49 +00:00
Debugger For PR789: 2007-03-29 19:05:44 +00:00
ExecutionEngine For PR1293: 2007-03-30 16:41:50 +00:00
Linker For PR1195: 2007-02-15 02:26:10 +00:00
Support Implement union of wrapped sets. 2007-04-01 03:47:44 +00:00
System Use the stat information in the Path object, if it is already obtained. This 2007-03-29 19:11:22 +00:00
Target Fix a bug which caused us to never be able to use signed comparisons for 2007-04-02 05:59:42 +00:00
Transforms Wrap long line 2007-04-02 05:48:58 +00:00
VMCore For PR1297: 2007-04-01 07:25:33 +00:00
Makefile Changes to support making the shift instructions be true BinaryOperators. 2007-02-02 02:16:23 +00:00