[MLIR][Arith][NFC] Use the interface of 'getElementTypeOrSelf' to get the resType
authorliqinweng <Liqin.Weng@streamcomputing.com>
Fri, 30 Dec 2022 03:54:06 +0000 (11:54 +0800)
committerliqinweng <Liqin.Weng@streamcomputing.com>
Fri, 30 Dec 2022 03:54:06 +0000 (11:54 +0800)
commitf8f4fc11d1b9256685a44725b55e431c57aaade3
tree37e06a6083832dc5ea178b89fe074d1cd1c3c85e
parenta63b7247299ce6edfbbf47c4a2773e5ca7eb7f11
[MLIR][Arith][NFC] Use the interface of 'getElementTypeOrSelf' to get the resType

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D140608
mlir/lib/Dialect/Arith/IR/ArithOps.cpp