================
@@ -2189,6 +2198,25 @@ CIRABIRewriteContext::rewriteCallSite(mlir::Operation
*callOp,
if (ac.kind == ArgKind::Ignore)
continue;
mlir::Value arg = argOperands[idx];
+
+ // Refreeze after the ABI rewrite, as classic CodeGen does, so padding is
+ // frozen too. Indirect freezes only the pointer, so keep non-load freezes.
+ auto freeze = arg.getDefiningOp<cir::FreezeOp>();
+ if (freeze && freeze->hasOneUse() &&
+ (ac.kind != ArgKind::Indirect ||
----------------
aobolensk wrote:
Done
https://github.com/llvm/llvm-project/pull/234124
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits