[Mlir-commits] [mlir] [MLIR][EmitC] Mark CastOp as Pure (PR #202749)
Jared Wyles
llvmlistbot at llvm.org
Wed Jun 10 00:59:54 PDT 2026
jaredwy wrote:
I do not know what MLIRs view on floats is, but your example is not pure depending on fenv settings.
I saw the question pop up on discourse and was thinking about this, there are not many cases where a cast in c++ is pure depending on your view of floats it could only be ints? Could a simple solution for now just to be use ConditionallySpeculatable/memoryopinterface to gate on the actually pure cases?
https://github.com/llvm/llvm-project/pull/202749
More information about the Mlir-commits
mailing list