Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlamonster committed Nov 9, 2023
1 parent 746a1b6 commit 86b0d28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/src/passes/assign/assign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ impl<'p> X86Selected<'p> {
pub fn assign(self) -> X86Assigned<'p> {
let program = self.include_liveness();
let interference = program.compute_interference();
let (color_map, stack_space) = interference.solve();
let (color_map, stack_space) = interference.color();

let blocks = program
.blocks
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/passes/assign/color_interference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::collections::{HashMap, HashSet};

impl<'p> InterferenceGraph<'p> {
#[must_use]
pub fn solve(self) -> (HashMap<UniqueSym<'p>, Arg>, usize) {
pub fn color(self) -> (HashMap<UniqueSym<'p>, Arg>, usize) {
let graph = self.0;
let mut queue = Vec::new();
let mut node_map = HashMap::<LArg, isize>::new();
Expand Down

0 comments on commit 86b0d28

Please sign in to comment.