Skip to content

Commit

Permalink
Avoid unnecessary mask
Browse files Browse the repository at this point in the history
Co-authored-by: Trevor Elliott <awesomelyawesome@gmail.com>
  • Loading branch information
fitzgen and elliottt authored Nov 3, 2023
1 parent 3d031f6 commit 971726f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cranelift/codegen/src/egraph/cost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl Cost {
}

fn op_cost(&self) -> u32 {
(self.0 & Self::OP_COST_MASK) >> Self::DEPTH_BITS
self.0 >> Self::DEPTH_BITS
}

/// Clamp this cost at a "finite" value. Can be used in
Expand Down

0 comments on commit 971726f

Please sign in to comment.