Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
latte
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zygzagZ
latte
Commits
09a934d5
Commit
09a934d5
authored
Jan 16, 2021
by
zygzagZ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup dead code
parent
19fd741d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
BasicBlock.cpp
src/codeGen/BasicBlock.cpp
+0
-15
BasicBlock.h
src/codeGen/BasicBlock.h
+0
-5
No files found.
src/codeGen/BasicBlock.cpp
View file @
09a934d5
...
...
@@ -3,21 +3,6 @@
#include "../Compiler.h"
void
BasicBlock
::
finishQuads
()
{
assert
(
afterInit
.
empty
());
if
(
!
afterInit
.
empty
())
{
while
(
!
quads
.
empty
()
&&
quads
.
back
()
->
isFinal
())
{
auto
final
=
quads
.
back
();
quads
.
pop_back
();
afterInit
.
emplace_back
(
final
);
}
for
(
const
auto
&
q
:
afterInit
)
{
assert
(
q
->
block
.
get
()
==
this
);
quads
.
push_back
(
q
);
}
afterInit
.
clear
();
}
for
(
const
auto
&
q
:
quads
)
{
q
->
useVariables
();
}
...
...
src/codeGen/BasicBlock.h
View file @
09a934d5
...
...
@@ -19,7 +19,6 @@ public:
quads
.
emplace_back
(
phi
);
};
vector
<
QuadruplePtr
>
quads
;
vector
<
QuadruplePtr
>
afterInit
;
vector
<
BasicBlockPtr
>
in
,
out
;
shared_ptr
<
QPhi
>
phi
;
void
append
(
const
BasicBlockPtr
&
after
)
{
...
...
@@ -39,10 +38,6 @@ public:
return
"?"
;
}
void
addJumpInitQuad
(
const
QuadruplePtr
&
q
)
{
afterInit
.
push_back
(
q
);
}
map
<
VariablePtr
,
VariablePtr
>
&
findPhi
(
const
BasicBlockPtr
&
blk
)
{
auto
it
=
find
(
in
.
begin
(),
in
.
end
(),
blk
);
if
(
it
==
in
.
end
())
throw
runtime_error
(
"blk not found in incoming 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