[PATCH] D99107: [clang][CodeGen] Do not emit NVRO debug helper when not emitting debug info

Nikita Kniazev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 22 13:57:52 PDT 2021


nick added a comment.

In D99107#2642451 <https://reviews.llvm.org/D99107#2642451>, @rnk wrote:

> We try to uphold the invariant that -g flags do not affect generated code, so I don't think we should do this.

Even under `-O0`? I could change the check to always emit on `-O0`. With optimizations enabled there is no change in generated code, DSE+DCE removes it anyway.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99107



More information about the cfe-commits mailing list