Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-26173-2487151
Compiler2024-Starry-Mood-675
Commits
15be220f
Commit
15be220f
authored
1 year ago
by
Looouiiis
Browse files
Options
Download
Patches
Plain Diff
tail_call:按思路写了一个极简尾调用优化pass,减少尾调用尤其是尾递归的内存开销,借此避免了median0、median2样例出现的栈溢出问题
parent
4cd48a0d
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
src/ir/ir.cpp
+31
-0
src/ir/ir.cpp
src/ir/ir.hpp
+23
-0
src/ir/ir.hpp
src/ir/ir_printer.cpp
+7
-0
src/ir/ir_printer.cpp
src/ir/ir_printer.hpp
+1
-0
src/ir/ir_printer.hpp
src/ir/irbuilder.cpp
+7
-0
src/ir/irbuilder.cpp
src/loongarch/coloring_allocator.cpp
+9
-1
src/loongarch/coloring_allocator.cpp
src/loongarch/program_builder.cpp
+112
-2
src/loongarch/program_builder.cpp
src/loongarch/program_builder.hpp
+5
-0
src/loongarch/program_builder.hpp
src/main.cpp
+1
-0
src/main.cpp
src/passes/pass_manager.cpp
+5
-0
src/passes/pass_manager.cpp
src/passes/pass_type.hpp
+2
-1
src/passes/pass_type.hpp
src/passes/tail_call.cpp
+96
-0
src/passes/tail_call.cpp
src/passes/tail_call.hpp
+21
-0
src/passes/tail_call.hpp
with
320 additions
and
4 deletions
+320
-4
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