[flang-commits] [flang] [flang] Decouple HLFIR array expansion from optimization level (PR #233478)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Oct 19 09:53:24 PDT 2026
================
@@ -114,11 +114,13 @@ class FlangEPCallBacks {
struct MLIRToLLVMPassPipelineConfig : public FlangEPCallBacks {
explicit MLIRToLLVMPassPipelineConfig(llvm::OptimizationLevel level) {
OptLevel = level;
+ useArrayRuntime = level == llvm::OptimizationLevel::O0;
}
explicit MLIRToLLVMPassPipelineConfig(llvm::OptimizationLevel level,
const Fortran::frontend::CodeGenOptions &opts,
const Fortran::common::MathOptionsBase &mathOpts) {
OptLevel = level;
+ useArrayRuntime = level == llvm::OptimizationLevel::O0;
----------------
tblah wrote:
I am no expert on device offload but judging by the removed code, I wonder if this should be enabled at higher optimisation levels if offloading?
https://github.com/llvm/llvm-project/pull/233478
More information about the flang-commits
mailing list