Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
2
2022fall-Compiler_CMinus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李晓奇
2022fall-Compiler_CMinus
Commits
60b6c163
Commit
60b6c163
authored
Dec 12, 2022
by
李晓奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish report!
parent
0afbec5c
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
338 additions
and
98 deletions
+338
-98
Reports/.gitignore
Reports/.gitignore
+1
-0
Reports/4.2-gvn/report.md
Reports/4.2-gvn/report.md
+336
-97
src/optimization/GVN.cpp
src/optimization/GVN.cpp
+1
-1
No files found.
Reports/.gitignore
View file @
60b6c163
...
...
@@ -2,3 +2,4 @@
2-ir-gen-warmup/*.pdf
3-ir-gen/*.pdf
4.1-ssa/*.pdf
4.2-gvn/*.pdf
Reports/4.2-gvn/report.md
View file @
60b6c163
This diff is collapsed.
Click to expand it.
src/optimization/GVN.cpp
View file @
60b6c163
...
...
@@ -634,7 +634,7 @@ GVN::transferFunction(Instruction *instr, Value *e, partitions pin) {
// auto e_global = dynamic_cast<GlobalVariable *>(e);
auto
e_argument
=
dynamic_cast
<
Argument
*>
(
e
);
assert
((
not
e
or
e_instr
or
e_const
or
e_argument
)
&&
"A value must be from
an instruction or consta
nt"
);
"A value must be from
instruction, constant or argume
nt"
);
// erase the old record for x
std
::
set
<
Value
*>::
iterator
it
;
for
(
auto
c
:
pout
)
...
...
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