Interesting question going forwards: We usually try to make test cases +/-Asserts agnostic (not using named values), now that we have a flag for it, should we not bother with that & just add the command line argument to enable names when names make testing easier? Or do we think that'll make tests more brittle/depend on unnecessary implementation details?
On Sat, Mar 12, 2016 at 6:00 PM, Mehdi AMINI via cfe-commits < cfe-commits@lists.llvm.org> wrote: > joker.eph created this revision. > joker.eph added reviewers: echristo, chandlerc. > joker.eph added a subscriber: cfe-commits. > > This flag is enabled by default in the driver when NDEBUG is set. It > is forwarded on the LLVMContext to discard all value names (but > GlobalValue) for performance purpose. > > This an improved version of D18024 > > http://reviews.llvm.org/D18127 > > Files: > include/clang/Driver/CC1Options.td > include/clang/Frontend/CodeGenOptions.def > lib/CodeGen/CGBuilder.h > lib/CodeGen/CGCall.cpp > lib/CodeGen/CGExpr.cpp > lib/CodeGen/CodeGenFunction.cpp > lib/CodeGen/ModuleBuilder.cpp > lib/Driver/Tools.cpp > lib/Frontend/CompilerInvocation.cpp > test/CodeGen/mips-byval-arg.c > test/CodeGen/mips-vector-arg.c > test/CodeGen/mips-zero-sized-struct.c > test/CodeGen/mips64-class-return.cpp > test/CodeGen/mips64-padding-arg.c > test/CodeGenCXX/debug-info-class.cpp > test/CodeGenCXX/stack-reuse.cpp > > > _______________________________________________ > cfe-commits mailing list > cfe-commits@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits > >
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits