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
1cc349ed
Commit
1cc349ed
authored
Mar 08, 2023
by
lxq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a tiny bug
parent
dd4ade94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/codegen/regalloc.cpp
src/codegen/regalloc.cpp
+2
-0
No files found.
src/codegen/regalloc.cpp
View file @
1cc349ed
...
...
@@ -36,6 +36,8 @@ RegAllocator::no_reg_alloca(Value *v) {
else
if
(
instr
->
is_zext
())
{
// only alloca for true use
bool
alloc
;
ASSERT_CMPINST_USED_ONCE
(
instr
);
if
(
instr
->
get_use_list
().
size
()
==
0
)
return
false
;
auto
use_ins
=
dynamic_cast
<
Instruction
*>
(
instr
->
get_use_list
().
begin
()
->
val_
);
// assert(use_ins != nullptr && "should only be instruction?");
...
...
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