When you use the CUDA driver to compile PTX code into SASS, you can specify an optimization level:
CU_JIT_OPTIMIZATION_LEVEL Level of optimizations