Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
2
2024ustc-jianmu-compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
compiler_staff
2024ustc-jianmu-compiler
Commits
874af38d
Commit
874af38d
authored
Dec 02, 2024
by
刘睿博
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add lab4.2 tips
parent
169a7e86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/passes/LoopDetection.cpp
src/passes/LoopDetection.cpp
+5
-0
No files found.
src/passes/LoopDetection.cpp
View file @
874af38d
...
@@ -51,6 +51,8 @@ void LoopDetection::discover_loop_and_sub_loops(BasicBlock *bb, BBset &latches,
...
@@ -51,6 +51,8 @@ void LoopDetection::discover_loop_and_sub_loops(BasicBlock *bb, BBset &latches,
* 2. 更新bb_to_loop_映射
* 2. 更新bb_to_loop_映射
* 3. 将bb的所有前驱加入工作表
* 3. 将bb的所有前驱加入工作表
*/
*/
throw
std
::
runtime_error
(
"Lab4: 你有一个TODO需要完成!"
);
}
}
// TODO-2: 处理已属于其他循环的节点
// TODO-2: 处理已属于其他循环的节点
else
if
(
bb_to_loop_
[
bb
]
!=
loop
)
{
else
if
(
bb_to_loop_
[
bb
]
!=
loop
)
{
...
@@ -63,6 +65,9 @@ void LoopDetection::discover_loop_and_sub_loops(BasicBlock *bb, BBset &latches,
...
@@ -63,6 +65,9 @@ void LoopDetection::discover_loop_and_sub_loops(BasicBlock *bb, BBset &latches,
* - 添加子循环
* - 添加子循环
* 5. 将子循环header的前驱加入工作表
* 5. 将子循环header的前驱加入工作表
*/
*/
throw
std
::
runtime_error
(
"Lab4: 你有一个TODO需要完成!"
);
}
}
}
}
}
}
...
...
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