The present disclosure discloses a computer implemented method and apparatus of vectorization aware loop unrolling having sequence of operation which includes the following steps : reading of a loop by the neural network; upon reading a loop, identifying the vectorizable instructions from a loop by a neural network, extracting essential features from the identified vectorizable instructions, estimating the vectorization window lengths using the decision tree algorithm based on the features of the vectorizable instruction and also estimating the profitability based on the profitability estimated in previous attempts using the neural network, computing the potential of the Straight-Line-Code Vectorization (SLP) as a product of profitability and vectorization window length, and unrolling the loops with highest potential SLP.

Creative Commons License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.