Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
peephole
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
peephole
Commits
0ee8729c
Commit
0ee8729c
authored
Dec 29, 2011
by
Jayke Meijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed calculation of optimizations.
parent
14c963e2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
8371 deletions
+1
-8371
benchmarks/optimized/clinpack.s
benchmarks/optimized/clinpack.s
+0
-3740
benchmarks/optimized/slalom.s
benchmarks/optimized/slalom.s
+0
-4630
src/optimize/__init__.py
src/optimize/__init__.py
+1
-1
No files found.
benchmarks/optimized/clinpack.s
deleted
100644 → 0
View file @
14c963e2
This diff is collapsed.
Click to expand it.
benchmarks/optimized/slalom.s
deleted
100644 → 0
View file @
14c963e2
This diff is collapsed.
Click to expand it.
src/optimize/__init__.py
View file @
0ee8729c
...
...
@@ -63,6 +63,6 @@ def optimize(statements, verbose=0):
print
'After global optimization: %d'
%
g
print
'After basic blocks optimization: %d'
%
b
print
'Optimization: %d (%d%%)'
\
%
(
b
-
o
,
int
((
b
-
o
)
/
float
(
o
)
*
100
))
%
(
o
-
b
,
int
((
o
-
b
)
/
float
(
b
)
*
100
))
return
opt_blocks
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment