<div dir="ltr">I have tried to append "std:cout ..." statement as following to check the effect if your LLVM patch normally works at build-time of coreCLR. <br>It's strange. I could not see the "[DEBUG] ****" message while compiling CoreCLR  with Clang/LLVM for Linux/ARM. Is it right? Can you give me an opinion?<div><br>* CoreCLR (Cross-build for Ubuntu/ARM 14.04 after updating LLVM): <div>Instruction - <a href="https://github.com/dotnet/coreclr/tree/master/Documentation/building">https://github.com/dotnet/coreclr/tree/master/Documentation/building</a></div><div>ubuntu14.04-x64$> sudo time ./cross/build-rootfs.sh arm</div><div>ubuntu14.04-x64$> time ROOTFS_DIR=/work/dotnet/rootfs-coreclr/arm  ./build.sh arm release clean cross</div><div><br></div><br>* Patch:<br><div>diff --git a/lib/Target/ARM/ARMConstantPoolValue.cpp b/lib/Target/ARM/ARMConstantPoolValue.</div><div>index 866ca82..ddf657d 100644</div><div>--- a/lib/Target/ARM/ARMConstantPoolValue.cpp</div><div>+++ b/lib/Target/ARM/ARMConstantPoolValue.cpp</div><div>@@ -20,6 +20,8 @@</div><div> #include "llvm/IR/Type.h"</div><div> #include "llvm/Support/raw_ostream.h"</div><div> #include <cstdlib></div><div>+#include <iostream></div><div>+</div><div> using namespace llvm;</div><div> </div><div> //===----------------------------------------------------------------------===//</div><div>@@ -73,6 +75,8 @@ ARMConstantPoolValue::addSelectionDAGCSEId(FoldingSetNodeID &ID) {</div><div> </div><div> bool</div><div> ARMConstantPoolValue::hasSameValue(ARMConstantPoolValue *ACPV) {</div><div>+  //printf ("[DEBUG] Do not merge ldr instructions.\n");</div><div>+  std::cout << "[DEBUG] Linux/ARM: Do not merge ldr instructions.\n";</div><div>   if (ACPV->Kind == Kind &&</div><div>       ACPV->PCAdjust == PCAdjust &&</div><div>invain@target:/work/dotnet/llvm-3.6.2.src$ </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 17, 2016 at 2:26 AM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</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 16 May 2016 at 05:21, Geunsik Lim <<a href="mailto:leemgs@gmail.com">leemgs@gmail.com</a>> wrote:<br>
> I am sorry too late. I have experimented the effect of your proposal after<br>
> applying for your patch into the existing llvm version both build<br>
> environment (e.g. Ubuntu 14.04 x64) and ARM evaluation board (Ubuntu/ARM<br>
> 14.04 based on Raspberry Pi2 board). Result is same. I mean that I could not<br>
> still run the console apps with -O2/-O3 optimization levels of Clang. Do you<br>
> have any idea?<br>
<br>
</span>I'm afraid not. I have a particular interest in TLS so I was able to<br>
spend some time debugging the original issue on those grounds, but<br>
generally the best way to get a bug fixed is to come up with a small<br>
test-case showing the same issue and report a bug at<br>
<a href="http://llvm.org/bugs" rel="noreferrer" target="_blank">http://llvm.org/bugs</a>.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><a href="http://leemgs.fedorapeople.org" style="font-family:Tahoma" target="_blank">http://leemgs.fedorapeople.org</a><span style="font-family:Tahoma"> </span></div><div>Don't try to avoid pain if you fail.<br>If you decided to face the challenges in life, <br>you can gain a lot by giving your best.<br>Cheolsang Jeong's Book & life<br>--<br></div></div></div>
</div>