mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
fix(compiler): Remove unused variables in TFHEGlobalParametrization.cpp
This commit is contained in:
committed by
Quentin Bourgerie
parent
7062052ca6
commit
39b80bd5b2
@@ -159,8 +159,7 @@ struct TFHEApplyLookupTablePaddingPattern
|
||||
.cast<mlir::concretelang::TFHE::GLWECipherTextType>();
|
||||
auto tabulatedLambdaType =
|
||||
op.l_cst().getType().cast<mlir::RankedTensorType>();
|
||||
auto glweOutType =
|
||||
op.getType().cast<mlir::concretelang::TFHE::GLWECipherTextType>();
|
||||
|
||||
auto expectedSize = 1 << glweInType.getP();
|
||||
if (tabulatedLambdaType.getShape()[0] < expectedSize) {
|
||||
auto constantOp = mlir::dyn_cast_or_null<mlir::arith::ConstantOp>(
|
||||
@@ -250,8 +249,6 @@ void populateWithTFHEApplyLookupTablePaddingPattern(
|
||||
.cast<mlir::concretelang::TFHE::GLWECipherTextType>();
|
||||
auto tabulatedLambdaType =
|
||||
op.getOperandTypes()[1].cast<mlir::RankedTensorType>();
|
||||
auto glweOutType =
|
||||
op.getType().cast<mlir::concretelang::TFHE::GLWECipherTextType>();
|
||||
|
||||
return tabulatedLambdaType.getShape()[0] == 1 << glweInType.getP();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user