diff --git a/src/nouveau/compiler/nak_ir.rs b/src/nouveau/compiler/nak_ir.rs index 9170302b187..b21322cac4e 100644 --- a/src/nouveau/compiler/nak_ir.rs +++ b/src/nouveau/compiler/nak_ir.rs @@ -1056,10 +1056,6 @@ impl Src { } } - pub fn get_reg(&self) -> Option<&RegRef> { - self.src_ref.get_reg() - } - pub fn iter_ssa(&self) -> slice::Iter<'_, SSAValue> { self.src_ref.iter_ssa() } @@ -1113,24 +1109,6 @@ impl Src { } } - pub fn is_false(&self) -> bool { - match self.src_ref { - SrcRef::True => self.src_mod.is_bnot(), - SrcRef::False => !self.src_mod.is_bnot(), - _ => false, - } - } - - pub fn is_reg_or_zero(&self) -> bool { - match self.src_ref { - SrcRef::Zero | SrcRef::SSA(_) | SrcRef::Reg(_) => true, - SrcRef::True - | SrcRef::False - | SrcRef::Imm32(_) - | SrcRef::CBuf(_) => false, - } - } - #[allow(dead_code)] pub fn supports_type(&self, src_type: &SrcType) -> bool { match src_type { diff --git a/src/nouveau/compiler/nak_liveness.rs b/src/nouveau/compiler/nak_liveness.rs index 86230f83024..4050555b622 100644 --- a/src/nouveau/compiler/nak_liveness.rs +++ b/src/nouveau/compiler/nak_liveness.rs @@ -32,10 +32,6 @@ impl LiveSet { self.live[file] } - pub fn counts(&self) -> &PerRegFile { - &self.live - } - pub fn insert(&mut self, ssa: SSAValue) -> bool { if self.set.insert(ssa) { self.live[ssa.file()] += 1;