[Mlir-commits] [mlir] [mlir][tosa] Make TOSA MUL's Shift an Input (PR #121953)
Luke Hutton
llvmlistbot at llvm.org
Tue Jan 14 05:25:07 PST 2025
================
@@ -614,7 +614,18 @@ OpFoldResult MulOp::fold(FoldAdaptor adaptor) {
auto rhsAttr =
llvm::dyn_cast_if_present<DenseElementsAttr>(adaptor.getInput2());
- const int64_t shift = llvm::isa<IntegerType>(resultETy) ? getShift() : 0;
+ // Result right shift on i32_t data type only. For simplification, synthesize
+ // a zero shift for other date type.
----------------
lhutton1 wrote:
nit: s/date/data
https://github.com/llvm/llvm-project/pull/121953
More information about the Mlir-commits
mailing list