blob: b4991fe5790b705e6dfa5a8e4bfc5aa351ded1ea [file] [log] [blame]
Brian Gaekee785e532004-02-25 19:28:19 +00001
Brian Gaeke22b5cd82004-07-16 10:31:36 +00002To-do
3-----
4
Chris Lattnere171d5c2004-12-13 20:13:10 +00005* Keep the address of the constant pool in a register instead of forming its
6 address all of the time.
Chris Lattnere171d5c2004-12-13 20:13:10 +00007* We can fold small constant offsets into the %hi/%lo references to constant
8 pool addresses as well.
Chris Lattner76afdc92006-01-30 05:35:57 +00009* When in V9 mode, register allocate %icc[0-3].
Chris Lattner61273d52008-02-28 05:44:20 +000010* Add support for isel'ing UMUL_LOHI instead of marking it as Expand.
Chris Lattner302601c2006-01-31 07:37:20 +000011* Emit the 'Branch on Integer Register with Prediction' instructions. It's
12 not clear how to write a pattern for this though:
13
14float %t1(int %a, int* %p) {
15 %C = seteq int %a, 0
16 br bool %C, label %T, label %F
17T:
18 store int 123, int* %p
19 br label %F
20F:
21 ret float undef
22}
23
24codegens to this:
25
26t1:
27 save -96, %o6, %o6
281) subcc %i0, 0, %l0
291) bne .LBBt1_2 ! F
30 nop
31.LBBt1_1: ! T
32 or %g0, 123, %l0
33 st %l0, [%i1]
34.LBBt1_2: ! F
35 restore %g0, %g0, %g0
36 retl
37 nop
38
391) should be replaced with a brz in V9 mode.
Brian Gaeke22b5cd82004-07-16 10:31:36 +000040
Chris Lattner76e7a442006-01-31 07:43:33 +000041* Same as above, but emit conditional move on register zero (p192) in V9
42 mode. Testcase:
43
44int %t1(int %a, int %b) {
45 %C = seteq int %a, 0
46 %D = select bool %C, int %a, int %b
47 ret int %D
48}
49
50* Emit MULX/[SU]DIVX instructions in V9 mode instead of fiddling
51 with the Y register, if they are faster.
52
53* Codegen bswap(load)/store(bswap) -> load/store ASI
54
Chris Lattnerfabec5b2006-01-31 07:45:08 +000055* Implement frame pointer elimination, e.g. eliminate save/restore for
56 leaf fns.
Chris Lattnera34b8982006-01-31 07:45:45 +000057* Fill delay slots
58
Nathan Keynes1ac1c1e2010-03-01 10:40:41 +000059* Implement JIT support