Mercurial > hg > graal-jvmci-8
annotate ProblemsIdeas.txt @ 3467:d007292cdb70
Use IsNotNull even for comparison against null, fix for wrong filtered class in LoopBegin.dataUsages
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Thu, 28 Jul 2011 11:33:23 +0200 |
parents | e3d3fd5b638a |
children | 0ffcce571d09 |
rev | line source |
---|---|
3225
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
1 Problems |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
2 ======== |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
3 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
4 * -Xcomp + synchronized method + unresolved type => deopt to bci -1 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
5 Example : try "runfop.sh -G:-Inline -Xcomp" should fail on the compilation of org.apache.xmlgraphics.util.Service.providers(java.lang.Class, boolean) |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
6 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
7 The first bytecode of the method is NEW (java.lang.StringBuffer)it will deopt because java.lang.StringBuffer is not resolved, the logic in append(FixedNode) will go back until the start node, detaching the MonitorEnter from the start node and attaching the Deopt instead. |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
8 Deopt will now get the FrameState generated by LIRGenerator in setOperandsForLocals which is bci -1 for a synchronized method. |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
9 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
10 Can interpreter handle bci -1 for synchronized methods ? if this is the case, the corresponding assert in LIRGenerator.visitDeoptimize should be removed as bci -1 should now only be used for synchronized entry points and not for exception handling or anything else |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
11 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
12 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
13 * Deopt caused by profiling can interfer with later optimisations |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
14 Exmple : have a look to some of the visit methods in avrora.arch.legacy.LegacyInterpreter sometimes if constructs which are used to materialize some booleans have a Deopt branch which prevents us from detecting an opportunity for a MaterilizeNode canonicalization. As long as the MaterializeNode itself doesnt get canonicalized away and in the end translates to jumps in the final assembly this doesnt really matter but it may if we optimise the emitted assembly |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
15 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
16 Ideas |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
17 ===== |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
18 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
19 * Always inline 'specialization' methods |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
20 Example : |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
21 public void foo(int a) { |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
22 foo(a, 1); // invoke 1 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
23 } |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
24 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
25 public void foo(int a, int b) { |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
26 foo(a, b, false); // invoke 2 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
27 } |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
28 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
29 public void foo(int a, int b, boolean c) { |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
30 // ... |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
31 } |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
32 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
33 Here invoke 1 and 2 should always be inlined regardless of the size of the inlined graph/method size and without increasing the inlining depth |
3227
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
34 specializations should always be inlined if we are in a trivial method, not only he methods with only one invoke, we shoudl also do it for exemple for methods that invoke and only do simple operations on paramteres or result |
3225
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
35 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
36 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
37 * 'computable' slots in Framstates/debug info |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
38 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
39 Framestates/debug info will keep some values live for longer than they should because the values are needed for exemple for a very unlikely Deopt, this increases the pressure on register allocator. |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
40 In the current system Deopt is the unlikely/slow path so maybe we can make it a bit slower to avoid this problem and increase fast path performances. |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
41 An idea would be to insert an 'expression' in some slots instead of value referances, the expression would use values that have to be live at this point for program semantics reasons. |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
42 Expressions would then be evaluated by the runtime when the framestate values are needed. Expression operators probably have to be kept simple (non-trapping arithmetics) |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
43 This could be done by deopting to some deopt handler that will fixup the computable slots, this would probably require less runtime hacking. For exemple an object containing the informations necessary to fixup the framestate could be inserted in one of the framestate solts and then used by a deopt handler called in the same way than the deopt handler example. |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
44 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
45 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
46 * Profilable expressions |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
47 |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
48 Some optimizations may benefit from knowing is some assumption can be done. For exemple some loop optimisations may want to know the likelyhood of 2 values being aliased so that it can know if inserting a deopt-if-aliased guard is really beneficial. |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
49 This kind of information can not always be derived just from branch probabilities and it would be interesting to be able to ask the runtime to profile an expression, the simplest version would be to generate a boolean expression and get the probability for it being true. |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
50 This requires going through the compiler and asking for further profiling there are 2 main options here : |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
51 - Reprofile the method in interpreter with the new profiled expression (we may modify the method bytecode to insert a conditional branch on the expression we want to profile, thus using the classical branch probability infrastructure) |
7610d0b83fd1
Canonicalize Compare if x valueEquals y, make EndNode return an empty list for cfgSux if it has no merge instead of retruning a list conatining null, make runjython executable, add a ProblemsIdeas.txt file
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
diff
changeset
|
52 - insert a profiling snippet in the compiled code and ask runtime to recompile the method after N executions |
3227
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
53 |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
54 |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
55 * Transform some contiguous array accesses into phis when possible |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
56 Example : (most probably found in scientific code, for example relaxation code) |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
57 |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
58 for (int i = 1; i < A.length - 1; i++) { |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
59 vm1 = A[i-1]; |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
60 v0 = A[i]; |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
61 vp1 = A[i+1]; |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
62 // ... |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
63 } |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
64 |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
65 should be transformed into |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
66 vm1 = A[0]; |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
67 v0 = A[1]; |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
68 for (int i = 0; i < A.length - 1; i++) { |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
69 vp1 = A[i+1]; |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
70 // ... |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
71 vm1 = v0; |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
72 v0 = vp1; |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
73 } |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
74 |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
75 This could be done in the context of a more advanced induction varaible analysis to be able to detect such access patterns. In this example we removed 2 array access (2 loads + 2 address computation + 2 bounds checks if not hoisted) while only adding 2 moves (phis) |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
76 |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
77 |
8793d44991fd
Added Verify option to be able to diable graph verification, ideal graph printing now also print string value for colors, removed redundant DCE/Canon phases
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3225
diff
changeset
|
78 * Implement array bounds check elimination |
3229
4a6bda6cfe28
Fix for usages that are phi in rematerialization
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3227
diff
changeset
|
79 |
4a6bda6cfe28
Fix for usages that are phi in rematerialization
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3227
diff
changeset
|
80 * Rematerialize only the nodes that were affected by GVN |
4a6bda6cfe28
Fix for usages that are phi in rematerialization
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3227
diff
changeset
|
81 This will probably require something that tracks changes to the Graph, the cost of such a tracking should be evaluated |
3233
e3d3fd5b638a
Canonicalize Negate(Negate(x)) for int/long remove incorrect canonicalization of FloatSub(0.0, x) to Negate(x)
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3229
diff
changeset
|
82 |
e3d3fd5b638a
Canonicalize Negate(Negate(x)) for int/long remove incorrect canonicalization of FloatSub(0.0, x) to Negate(x)
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3229
diff
changeset
|
83 * Hints on register pressure |
e3d3fd5b638a
Canonicalize Negate(Negate(x)) for int/long remove incorrect canonicalization of FloatSub(0.0, x) to Negate(x)
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3229
diff
changeset
|
84 |
e3d3fd5b638a
Canonicalize Negate(Negate(x)) for int/long remove incorrect canonicalization of FloatSub(0.0, x) to Negate(x)
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
3229
diff
changeset
|
85 Sometimes we can make better decisions if we know the register pressure, it would be nice to have a way to know about it. Maybe we have register allocation on SSA we can somehow interact with it and try to lower the pressure in some areas on request? |