<div dir="ltr">Our bot used clang-800.0.42.1 and had the same IR as Sanjay.</div><div class="gmail_extra"><br><div class="gmail_quote">On 10 August 2017 at 11:57, Davide Italiano via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Aug 10, 2017 at 12:43 AM, Davide Italiano <<a href="mailto:davide@freebsd.org">davide@freebsd.org</a>> wrote:<br>
> On Wed, Aug 9, 2017 at 12:42 PM, Sanjay Patel <<a href="mailto:spatel@rotateright.com">spatel@rotateright.com</a>> wrote:<br>
>> The IR difference is real - it seems to depend on whether you're building<br>
>> debug or release.<br>
>><br>
>> This didn't change if I specified triple+layout with:<br>
>> target datalayout = "e-m:e-i64:64-f80:128-n8:16:<wbr>32:64-S128"<br>
>> target triple = "x86_64-unknown-linux-gnu"<br>
>><br>
>> Here's what I show using a debug build of opt on x86-64 on macOS (note:<br>
>> different blocks, different phi, etc):<br>
><br>
> While I think this is unrelated to the change, it's an annoying piece<br>
> of non-determinism.<br>
> I'll try to shed some light on it today.<br>
><br>
> Thanks,<br>
><br>
<br>
</span>I'm finally able to reproduce this.<br>
It reproduces only on MacOS (not on Linux nor Windows), when building<br>
trunk (debug/release) with the following compiler:<br>
<br>
$ clang --version<br>
Apple LLVM version 7.3.0 (clang-703.0.31)<br>
Target: x86_64-apple-darwin15.4.0<br>
Thread model: posix<br>
InstalledDir: /Applications/Xcode.app/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>bin<br>
<br>
Does this match the version you have? I'll consider building with a<br>
different compiler on Mac (e.g. GCC) because this could possibly be a<br>
miscompile introduced by the LLVM clang shipped by Apple.<br>
<br>
Thanks,<br>
<br>
--<br>
Davide<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>