Skip to content

Commit 4fe8b35

Browse files
Merge branch 'main' into warn-draw
2 parents 2055673 + 908850f commit 4fe8b35

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tools/nvqpp/nvq++.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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
350356
DO_LINK=true
351357
SHOW_VERSION=false
352358
ENABLE_ARRAY_CONVERSION=true
359+
ENABLE_VARIABLE_COALESCE=true
353360
ENABLE_UNWIND_LOWERING=true
354361
ENABLE_DEVICE_CODE_LOADER=true
355362
ENABLE_KERNEL_EXECUTION=true
@@ -707,6 +714,10 @@ fi
707714

708715
RUN_OPT=false
709716
OPT_PASSES=
717+
if ${ENABLE_VARIABLE_COALESCE}; then
718+
RUN_OPT=true
719+
OPT_PASSES="func.func(variable-coalesce)"
720+
fi
710721
if ${ENABLE_UNWIND_LOWERING}; then
711722
RUN_OPT=true
712723
OPT_PASSES="func.func(unwind-lowering)"

0 commit comments

Comments
 (0)