-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add allocation hoist optimization (#534)
* Add allocation hoist optimization * Fix analysis of nested loops * Check for irreducible cycles * Add additional check when analyzing insertvalue * Add allocation-specific attributes in LLVM IR * Remove unused calloc function from runtime library * Add float -> intN and float -> uintN constructors * Only hoist atomic allocations * Update codegen * Simplify codegen * Change allocation hoist pass to be a function pass * Fix loop iteration order * Use 'struct' instead of 'class' * Add check for phi instructions in header; refactor * Remove unneeded checks * Fix C++ benchmark * Remove annotation
- Loading branch information
Showing
9 changed files
with
414 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include <algorithm> | ||
#include <chrono> | ||
#include <functional> | ||
#include <iostream> | ||
#include <vector> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.