Skip to content

LoopOptTutorial: Basic loop optimization template [STEP3] - #3

Open
etiotto wants to merge 12 commits into
Tutorial_step2from
Tutorial_step3a
Open

LoopOptTutorial: Basic loop optimization template [STEP3]#3
etiotto wants to merge 12 commits into
Tutorial_step2from
Tutorial_step3a

Conversation

@etiotto

@etiotto etiotto commented Oct 23, 2019

Copy link
Copy Markdown
Collaborator

For the previous step take a look at #2.

In this step we add the code that does the actual transformation (e.g generates the LLVM IR). We start by cloning the candidate loop we have identified in the previous step, and inject the cloned loop into the LLVM IR. After adding the new loop to the LLVM IR we modify the bounds of the cloned loop and of the original loop so that the clone loop traverses the first half of the original loop iteration space and the original loop traverses the second half.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants