fix(compiler): Remove unused variables in lib/Dialect/TFHE/IR/TFHEOps.cpp

This commit is contained in:
Andi Drebes
2022-01-07 11:11:39 +01:00
committed by Quentin Bourgerie
parent ce9d86014d
commit 7062052ca6

View File

@@ -147,11 +147,9 @@ mlir::LogicalResult verifyUnaryGLWEOperator(Operator &op) {
mlir::LogicalResult verifyApplyLookupTable(ApplyLookupTable &op) {
auto ct = op.ct().getType().cast<GLWECipherTextType>();
auto l_cst = op.l_cst().getType().cast<RankedTensorType>();
auto result = op.getResult().getType().cast<GLWECipherTextType>();
// Check the shape of l_cst argument
auto width = ct.getP();
auto lCstShape = l_cst.getShape();
auto expectedSize = 1 << width;
mlir::SmallVector<int64_t, 1> expectedShape{expectedSize};
if (!l_cst.hasStaticShape(expectedShape)) {