[flang-commits] [flang] [mlir] [flang][acc] Handle ViewLike ops with OutlineRematerializationOpInterface in OffloadLiveInValueCanonicalization (PR #184218)

via flang-commits flang-commits at lists.llvm.org
Wed Mar 4 12:51:17 PST 2026


================
@@ -253,3 +253,45 @@ func.func @test_accbounds_rematerialize_fir() {
 // CHECK: acc.bounds
 // CHECK: acc.serial {
 // CHECK:   acc.bounds
+
+// -----
+
+// Test fir.convert rematerialization (ViewLikeOpInterface +
+// OutlineRematerializationOpInterface).
+func.func private @use_i64(i64) -> ()
+
+func.func @test_convert_rematerialize(%arg0: !fir.ref<i32>) {
+  %0 = fir.convert %arg0 : (!fir.ref<i32>) -> i64
----------------
khaki3 wrote:

Thank you for the clarification. The PR has now resolves all your cases, so `fir.convert` gets sunk.

https://github.com/llvm/llvm-project/pull/184218


More information about the flang-commits mailing list