source: proto/pebble/trunk/inputs/input-11.pbl @ 1254

Last change on this file since 1254 was 1254, checked in by shermer, 8 years ago

Work towards revitalising the optimizations:

Added DefUseProperty?, which computes and stores local def-use chains.
Reworked ReuseAvailableExpressions?, mainly to account for non-SSA blocks. RAE is putatively working, but needs refactoring, cleanup, and more testing.
Small adjustments made to other classes to support these changes, and associated refactoring.

File size: 324 bytes
Line 
1
2// used for checking local def-use chain construction.
3
4macro first {
5        a = b & c
6        d = a | b
7        g = d ^ a
8#       j = ~g
9#       l = j
10        m = b & c
11#       d = >>>j
12#       g = b +> d
13        f = d ^ a
14        d = m <> b
15       
16        if v & d | x not allone then {
17                x = 0
18        }
19        else {
20                m = 1
21        }
22
23
24}
25
26
27defblock main {
28        aaa = bbb
29        expand first
30}
31
Note: See TracBrowser for help on using the repository browser.