[flang-commits] [flang] [flang] Disable noalias captures(none) by default (PR #142128)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Fri May 30 08:52:44 PDT 2025
================
@@ -350,9 +358,10 @@ void createDefaultFIRCodeGenPassPipeline(mlir::PassManager &pm,
else
framePointerKind = mlir::LLVM::framePointerKind::FramePointerKind::None;
- bool setNoCapture = false, setNoAlias = false;
- if (config.OptLevel.isOptimizingForSpeed())
- setNoCapture = setNoAlias = true;
+ // TODO: re-enable setNoAlias by default (when optimizing for speed) once
+ // function specialization is fixed.
+ bool setNoAlias = forceNoAlias;
+ bool setNoCapture = forceNoCapture;
----------------
tblah wrote:
My bad I was rushing and missed this. It turns out to work fine with nocapture still enabled. I've updated the patch.
https://github.com/llvm/llvm-project/pull/142128
More information about the flang-commits
mailing list