[flang-commits] [flang] [flang] Make more [HL]FIR operations Pure. (PR #191309)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Fri Apr 10 08:23:07 PDT 2026
================
@@ -526,7 +526,7 @@ def fir_CharConvertOp : fir_Op<"char_convert", []> {
let hasVerifier = 1;
}
-def fir_UndefOp : fir_OneResultOp<"undefined", [NoMemoryEffect]> {
+def fir_UndefOp : fir_OneResultOp<"undefined", [Pure]> {
----------------
vzakhari wrote:
Thank you for the idea, Tom. Yes, I also saw the `ConstantLike` trait on those LLVM operations and had the same concern as Jean. I think it is good to have it for completeness, if we can make it work :)
https://github.com/llvm/llvm-project/pull/191309
More information about the flang-commits
mailing list