File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,12 @@ function f_option_handling {
119119 -fno-array-conversion)
120120 ENABLE_ARRAY_CONVERSION=false
121121 ;;
122+ -fvariable-coalesce)
123+ ENABLE_VARIABLE_COALESCE=true
124+ ;;
125+ -fno-variable-coalesce)
126+ ENABLE_VARIABLE_COALESCE=false
127+ ;;
122128 * )
123129 # Pass any unrecognized options on to the clang++ tool.
124130 ARGS=" ${ARGS} $1 "
@@ -350,6 +356,7 @@ LLC_FLAGS=-O2
350356DO_LINK=true
351357SHOW_VERSION=false
352358ENABLE_ARRAY_CONVERSION=true
359+ ENABLE_VARIABLE_COALESCE=true
353360ENABLE_UNWIND_LOWERING=true
354361ENABLE_DEVICE_CODE_LOADER=true
355362ENABLE_KERNEL_EXECUTION=true
707714
708715RUN_OPT=false
709716OPT_PASSES=
717+ if ${ENABLE_VARIABLE_COALESCE} ; then
718+ RUN_OPT=true
719+ OPT_PASSES=" func.func(variable-coalesce)"
720+ fi
710721if ${ENABLE_UNWIND_LOWERING} ; then
711722 RUN_OPT=true
712723 OPT_PASSES=" func.func(unwind-lowering)"
You can’t perform that action at this time.
0 commit comments