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
06f81e55
Commit
06f81e55
authored
2 months ago
by
刘睿博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix testcases bugs & LoopDetection bugs
parent
874af38d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
1 deletion
+6
-1
src/passes/LoopDetection.cpp
src/passes/LoopDetection.cpp
+2
-1
tests/4-opt/testcases/loop/loop-1.out
tests/4-opt/testcases/loop/loop-1.out
+1
-0
tests/4-opt/testcases/loop/loop-2.out
tests/4-opt/testcases/loop/loop-2.out
+1
-0
tests/4-opt/testcases/loop/loop-3.out
tests/4-opt/testcases/loop/loop-3.out
+1
-0
tests/4-opt/testcases/loop/loop-4.out
tests/4-opt/testcases/loop/loop-4.out
+1
-0
No files found.
src/passes/LoopDetection.cpp
View file @
06f81e55
...
...
@@ -63,7 +63,8 @@ void LoopDetection::discover_loop_and_sub_loops(BasicBlock *bb, BBset &latches,
* 4. 建立循环嵌套关系:
* - 设置父循环
* - 添加子循环
* 5. 将子循环header的前驱加入工作表
* 5. 将子循环的所有基本快加入到父循环中
* 6. 将子循环header的前驱加入工作表
*/
throw
std
::
runtime_error
(
"Lab4: 你有一个TODO需要完成!"
);
...
...
This diff is collapsed.
Click to expand it.
tests/4-opt/testcases/loop/loop-1.out
View file @
06f81e55
0
0
This diff is collapsed.
Click to expand it.
tests/4-opt/testcases/loop/loop-2.out
View file @
06f81e55
1
0
This diff is collapsed.
Click to expand it.
tests/4-opt/testcases/loop/loop-3.out
View file @
06f81e55
1
0
This diff is collapsed.
Click to expand it.
tests/4-opt/testcases/loop/loop-4.out
View file @
06f81e55
1
0
This diff is collapsed.
Click to expand it.
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