<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/120941>120941</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Crash backtrace in mltc-opt with AffineExpr operations.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          wodylm
      </td>
    </tr>
</table>

<pre>
    when  I use affineExpr's operator*:
 #0 0x00007f9ebf90145f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:22
 #1 0x00007f9ebf901912 PrintStackTraceSignalHandler(void*) /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Unix/Signals.inc:798:1
 #2 0x00007f9ebf8fe833 llvm::sys::RunSignalHandlers() /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Signals.cpp:105:20
 #3 0x00007f9ebf900b2a SignalHandler(int) /home/yongliangzha/mltc/modules/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1
 #4 0x00007f9ea384e090 (/lib/x86_64-linux-gnu/libc.so.6+0x43090)
 #5 0x00007f9ebb59afa2 mlir::AffineExpr::getKind() const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:31:16
 #6 0x00007f9ebb59bc05 mlir::AffineExpr::isSymbolicOrConstant() const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:170:3
 #7 0x00007f9ebb59bc75 mlir::AffineExpr::isSymbolicOrConstant() const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:184:49
 #8 0x00007f9ebb59e512 simplifyMul(mlir::AffineExpr, mlir::AffineExpr) /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:771:7
 #9 0x00007f9ebb59e7d4 mlir::AffineExpr::operator*(mlir::AffineExpr) const /home/yongliangzha/mltc/modules/llvm-project/mlir/lib/IR/AffineExpr.cpp:809:49
#10 0x00007f9eb411346b mltc::lnpu::CosAffineCompute::computeAffineInt(mlir::Operation*, mlir::OpBuilder)::'lambda1'(mlir::Operation*)::operator()(mlir::Operation*) const /home/yongliangzha/mltc/mltc/dialect/npu/transforms/utils.h:1035:35
#11 0x00007f9eb4114685 mltc::lnpu::CosAffineCompute::computeAffineInt(mlir::Operation*, mlir::OpBuilder) /home/yongliangzha/mltc/mltc/dialect/npu/transforms/utils.h:1231:1
#12 0x00007f9eb2ab6a41 mltc::lnpu::AffineCompute::visitArithOp(mlir::Operation*, mlir::OpBuilder) /home/yongliangzha/mltc/mltc/dialect/npu/transforms/utils.h:551:21

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzMlkuP6yYUxz8N2aCJ8AE_WHiRSRt1VFVT3WnXV9jGMb0YLMAzST99he1RHk1HV32kd2Ubo8Pv_z9wOMJ7tTdSlih9ROl3KzGGzrryzTZH3a8q2xzLt04ajJ_w6CUWbauM_P4wOAS5x3aQTgTrEGwQ3SCywQgoweRACCF5y2XVcpKwtMVav_ZxCt34o59ffnbKhJcg6i-_OFFLBMVpkhNvn60PTooeQYZgi5UJCDhGsOtsLxHsjtbstRJm_3snEOx6Her4sM2opUewi8EeBmd_k3VYPuNDVQh2L-MwWBeHfzXqEAfU3gjt18rUiG5yoIhuABZBybUgngC-op8D_CBMo6VDULxa1URX7obMC0Q3yUIMF8RFKwtKb6Xg02guwD2C4r9AfmethyFSkjTaSxZYemUvqUDgaz_vmX6W0DMv2RmeoAWThBM8-bREOxTZ54w9aGXGw8PejPOPeu3tOkPwSA6MEk4Q8CVgeq63SrloBeBeKzfnZHM6YtP3XoYflWmWzNTW-PD3bZiWeQd_-oRgd1puyQ5Novhsgc2uYKuapB_AKv9y7CurVf3sthFVxLzdiTzJSeRfyPM_keffLnnB4r573yHFFb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