decomp-permuter icon indicating copy to clipboard operation
decomp-permuter copied to clipboard

Improve node indices

Open simonlindholm opened this issue 5 years ago • 0 comments

Currently in the randomization code we track node locations by traversing the AST in preorder, and giving every node an index. We should extend that to record every node's start index, end index, and for loops, hypothetical before and after indices used to mark stores/loads in previous/upcoming loop iterations. The extension to loops would help with e.g. the variable expander rewriting for (i = 0; i < n; i++) into for (i; 0 < n; i++).

simonlindholm avatar Mar 14 '19 13:03 simonlindholm