File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -153,12 +153,6 @@ class InlineFunctionCallVisitor : public PassUtils::PassVisitor<InlineFunctionCa
153
153
ASR::ExternalSymbol_t* called_sym_ext = ASR::down_cast<ASR::ExternalSymbol_t>(x.m_name );
154
154
ASR::symbol_t * f_sym = ASRUtils::symbol_get_past_external (called_sym_ext->m_external );
155
155
ASR::Function_t* f = ASR::down_cast<ASR::Function_t>(f_sym);
156
-
157
- // Never inline intrinsic functions
158
- if ( ASRUtils::is_intrinsic_function2 (f) ) {
159
- return ;
160
- }
161
-
162
156
ASR::symbol_t * called_sym = x.m_name ;
163
157
164
158
// TODO: Handle later
@@ -217,6 +211,12 @@ class InlineFunctionCallVisitor : public PassUtils::PassVisitor<InlineFunctionCa
217
211
return ;
218
212
}
219
213
214
+ // Never inline intrinsic functions
215
+ if ( ASRUtils::is_intrinsic_function2 (func) ||
216
+ startswith (func->m_name ," _lfortran_" ) ) {
217
+ return ;
218
+ }
219
+
220
220
if ( !is_fast && !ASRUtils::get_FunctionType (func)->m_inline ) {
221
221
return ;
222
222
}
You can’t perform that action at this time.
0 commit comments