[Mlir-commits] [mlir] [mlir][emitc] Mark emitc.literal with CExpression (PR #155582)
Vlad Lazar
llvmlistbot at llvm.org
Wed Aug 27 07:42:20 PDT 2025
Vladislave0-0 wrote:
> Literal is marked `pure`. Won't this expose the expression to CSE, causing the example above to be left without any operation with the expression? (see this [related discussion](https://github.com/llvm/llvm-project/pull/143485#issuecomment-2965378156))
Thanks! If I understood your question correctly, I think there should be no problem with CSE, because emitc.expression creates an isolated region that protects internal operations from CSE with external operations. So the test above will work correctly.
https://github.com/llvm/llvm-project/pull/155582
More information about the Mlir-commits
mailing list