<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Dec 13, 2016 at 5:33 PM Duncan P. N. Exon Smith via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I agree that ideally we would teach Clang not to emit the code, but last I checked -O0 has a number of IR-modifying passes thanks to the sanitizers.</blockquote><div><br></div><div>Not unless those sanitizers are enabled? I think the always inliner is the big one here...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> To understand how the frontend is (mis)behaving, I think you already need -mllvm -disable-llvm-passes.<br class="gmail_msg"></blockquote><div><br></div><div>Yes, I'm talking about testing whether LLVM is misbehaving which is different? Note that the patch changes the *opt* -O0, not just Clang.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
> On 2016-Dec-13, at 17:25, Chandler Carruth via Phabricator <<a href="mailto:reviews@reviews.llvm.org" class="gmail_msg" target="_blank">reviews@reviews.llvm.org</a>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
> chandlerc added a comment.<br class="gmail_msg">
><br class="gmail_msg">
> Personally, I would much rather teach Clang to not emit code than run a pass at O0. I really would like to preserve the ability to use O0 to understand why LLVM is misbehaving.<br class="gmail_msg">
><br class="gmail_msg">
> (The fact that we need to run the always inliner at O0 is already somewhat frustrating, I think it makes sense to resist worsening that situation.)<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> <a href="https://reviews.llvm.org/D27560" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D27560</a><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
llvm-commits mailing list<br class="gmail_msg">
<a href="mailto:llvm-commits@lists.llvm.org" class="gmail_msg" target="_blank">llvm-commits@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class="gmail_msg">
</blockquote></div></div>