Remove unused IsZero; NFC

This commit is contained in:
Paulo Matos committed 2025-09-22 14:22:14 +02:00
1 parent b3d88c043d
commit 21e29af48b
1 file changed
-12
@@ -255,18 +255,6 @@ private:
}
}
// Helper to check if a Ref is a Zero constant
bool IsZero(Ref Node) {
auto Header = IR->GetOp<IR::IROp_Header>(Node);
if (Header->Op != OP_CONSTANT) {
return false;
}
auto Const = Header->C<IROp_Constant>();
return Const->Constant == 0;
}
// Handles a Unary operation.
// Takes the op we are handling, the Node for the reduced precision case and the node for the normal case.
// Depending on the type of Op64, we might need to pass a couple of extra constant arguments, this happens