Commit bb63ca6
committed
tree-optimization/95045 - fix SM with exit exiting multiple loops
Since we apply SM to an edge which exits multiple loops we have
to make sure to commit insertions on it immediately since otherwise
store order is not preserved.
2020-05-12 Richard Biener <[email protected]>
PR tree-optimization/95045
* dbgcnt.def (lim): Add debug-counter.
* tree-ssa-loop-im.c: Include dbgcnt.h.
(find_refs_for_sm): Use lim debug counter for store motion
candidates.
(do_store_motion): Rename form store_motion. Commit edge
insertions...
(store_motion_loop): ... here.
(tree_ssa_lim): Adjust.1 parent 7a2e715 commit bb63ca6
3 files changed
+23
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
1 | 13 | | |
2 | 14 | | |
3 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
2862 | 2863 | | |
2863 | 2864 | | |
2864 | 2865 | | |
2865 | | - | |
| 2866 | + | |
2866 | 2867 | | |
2867 | 2868 | | |
2868 | 2869 | | |
| |||
2900 | 2901 | | |
2901 | 2902 | | |
2902 | 2903 | | |
2903 | | - | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
2904 | 2910 | | |
2905 | 2911 | | |
2906 | 2912 | | |
| |||
2915 | 2921 | | |
2916 | 2922 | | |
2917 | 2923 | | |
2918 | | - | |
| 2924 | + | |
2919 | 2925 | | |
2920 | 2926 | | |
2921 | 2927 | | |
| |||
2924 | 2930 | | |
2925 | 2931 | | |
2926 | 2932 | | |
2927 | | - | |
2928 | 2933 | | |
2929 | 2934 | | |
2930 | 2935 | | |
| |||
3141 | 3146 | | |
3142 | 3147 | | |
3143 | 3148 | | |
3144 | | - | |
| 3149 | + | |
3145 | 3150 | | |
3146 | 3151 | | |
3147 | 3152 | | |
| |||
0 commit comments