Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
一刻也没有为段错误而哀悼
Compiler2024-riscv
Commits
17079b0b
Commit
17079b0b
authored
10 months ago
by
syx
Browse files
Options
Download
Plain Diff
将循环中的块遍历从逆后序修改为拓扑序
parents
d9ea3b30
8095839e
submit
bisect
save
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/passes/Mem2Reg.cpp
+1
-0
src/passes/Mem2Reg.cpp
with
1 addition
and
0 deletions
+1
-0
src/passes/Mem2Reg.cpp
+
1
−
0
View file @
17079b0b
...
...
@@ -120,6 +120,7 @@ void Mem2Reg::rename(BasicBlock *bb, const Dominators *dominators_) {
if
(
inst
->
is_phi
())
{
auto
phi
=
dynamic_cast
<
PhiInst
*>
(
inst
);
auto
lval
=
phi_map_
[
phi
];
if
(
not
lval
)
continue
;
if
(
var_stack_
.
find
(
lval
)
==
var_stack_
.
end
())
continue
;
// assert(!var_stack_[lval].empty());
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets