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
a7c3734d
Commit
a7c3734d
authored
Dec 31, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused files.
parent
0b972e6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
18 deletions
+0
-18
TODO CSE.txt
TODO CSE.txt
+0
-8
compile
compile
+0
-5
src/todo.txt
src/todo.txt
+0
-5
No files found.
TODO CSE.txt
deleted
100644 → 0
View file @
0b972e6c
Common subexpression elimination
Loop through statements of each block
for each binary operator, look back for usage of rs and rt. If rs or rt are
assigned, break. If exact same operator is found, add it to the list of
common subexpressions. If you reach the end of the block, or rs or rt are
assigned, make new destination address, and change each occurence of this
expression with a move from the new register address.
compile
deleted
100755 → 0
View file @
0b972e6c
#!/bin/sh
xgcc
-S
$1
.c
xgcc
-o
$1
.o
$1
.s
sim-outorder
$1
.o 2>&1 | egrep
-o
^sim_cycle[[:space:]]+[[:digit:]]+
\
| egrep
-o
[[
:digit:]]+
$
src/todo.txt
deleted
100644 → 0
View file @
0b972e6c
* `verbose' argument in main.py
* infinite loop in pred/succ
* 2 unit tests copy propagation falen: of het argument wordt niet goed
vervangen, of de unit test is raar (print statements laten namelijk wel
vervangende code zien)
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