linjamaki added a comment.

If I understand correctly, the default optimization level is `-O2` for the 
OpenCL and OpenCL++ language mode (according to 
CompilerInvocation.cpp:getOptimizationLevel()). Since higher than `-O0` may not 
work with the translator, should the SPIR-V tool chain override this default 
and set it to -O0 (unless a user passes some -O option)?

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112410/new/

https://reviews.llvm.org/D112410

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to