[Mlir-commits] [mlir] d1ee26b - [MLIR] Use different constant expression in test (NFC)
Nikita Popov
llvmlistbot at llvm.org
Tue Nov 7 02:10:22 PST 2023
Author: Nikita Popov
Date: 2023-11-07T11:10:13+01:00
New Revision: d1ee26ba9f51dcb09074a0a038992b7d36f4917a
URL: https://github.com/llvm/llvm-project/commit/d1ee26ba9f51dcb09074a0a038992b7d36f4917a
DIFF: https://github.com/llvm/llvm-project/commit/d1ee26ba9f51dcb09074a0a038992b7d36f4917a.diff
LOG: [MLIR] Use different constant expression in test (NFC)
Mul expressions will be removed, so use something else.
Added:
Modified:
mlir/test/Target/LLVMIR/Import/constant.ll
Removed:
################################################################################
diff --git a/mlir/test/Target/LLVMIR/Import/constant.ll b/mlir/test/Target/LLVMIR/Import/constant.ll
index 620c1d3772d054d..cd2d00ec0aa7834 100644
--- a/mlir/test/Target/LLVMIR/Import/constant.ll
+++ b/mlir/test/Target/LLVMIR/Import/constant.ll
@@ -219,10 +219,10 @@ define i64 @const_exprs_with_duplicate() {
; Verify the import of constant expressions with cyclic dependencies.
- at cyclic = internal constant i64 mul (i64 ptrtoint (ptr @cyclic to i64), i64 ptrtoint (ptr @cyclic to i64))
+ at cyclic = internal constant i64 add (i64 ptrtoint (ptr @cyclic to i64), i64 ptrtoint (ptr @cyclic to i64))
; CHECK-LABEL: @cyclic
; CHECK: %[[ADDR:.+]] = llvm.mlir.addressof @cyclic
; CHECK: %[[VAL0:.+]] = llvm.ptrtoint %[[ADDR]]
-; CHECK: %[[VAL1:.+]] = llvm.mul %[[VAL0]], %[[VAL0]]
+; CHECK: %[[VAL1:.+]] = llvm.add %[[VAL0]], %[[VAL0]]
; CHECK: llvm.return %[[VAL1]]
More information about the Mlir-commits
mailing list