[PATCH] D16263: [CodeGenPrepare] Also consider metadata uses
Hal Finkel via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 16 20:41:46 PST 2016
hfinkel added a subscriber: hfinkel.
hfinkel requested changes to this revision.
hfinkel added a reviewer: hfinkel.
hfinkel added a comment.
This revision now requires changes to proceed.
Unfortunately, you cannot solve the problem this way. The largest reason is that it would cause the presence or absence of debug info to affect code generation, which it should not do - it becomes very difficult to debug problems when adding -g makes the problem go away ;) -- And secondly, in a conflict between performing an optimization and preserving debug info, we always perform the optimization, even if that means we need to discard the debug info. Is there no way to update the debug info instead?
Repository:
rL LLVM
http://reviews.llvm.org/D16263
More information about the llvm-commits
mailing list