Files
llvm-6502/test/CodeGen/PowerPC
Hal Finkel f329765d23 [PowerPC] Better lowering for add/or of a FrameIndex
If we have an add (or an or that is really an add), where one operand is a
FrameIndex and the other operand is a small constant, we can combine the
lowering of the FrameIndex (which is lowered as an add of the FI and a zero
offset) with the constant operand.

Amusingly, this is an old potential improvement entry from
lib/Target/PowerPC/README.txt which had never been resolved. In short, we used
to lower:

        %X = alloca { i32, i32 }
        %Y = getelementptr {i32,i32}* %X, i32 0, i32 1
        ret i32* %Y

as:

        addi 3, 1, -8
        ori 3, 3, 4
        blr

and now we produce:

        addi 3, 1, -4
        blr

which is much more sensible.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224071 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-11 22:51:06 +00:00
..
2014-04-12 01:26:00 +00:00
2013-03-27 06:52:27 +00:00
2014-09-12 14:26:36 +00:00
2013-07-03 17:59:07 +00:00
2014-10-21 23:01:01 +00:00
2014-10-21 23:01:01 +00:00
2013-04-05 23:29:01 +00:00
2012-12-20 17:47:27 +00:00
2014-08-04 21:06:00 +00:00
2014-08-04 21:06:00 +00:00
2013-08-06 17:03:03 +00:00
2013-04-01 15:58:15 +00:00
2014-11-12 16:40:00 +00:00
2014-11-12 16:40:00 +00:00
2012-08-28 02:10:15 +00:00
2014-10-16 20:00:02 +00:00
2012-08-28 02:10:33 +00:00
2013-04-27 00:43:16 +00:00
2013-12-20 18:08:54 +00:00
2012-12-19 15:49:14 +00:00