<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 8:51 PM, Michael Liao <span dir="ltr"><<a href="mailto:michael.liao@intel.com" target="_blank">michael.liao@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":c6l" class="a3s" style="overflow:hidden">Author: hliao<br>
Date: Thu Feb 12 22:51:26 2015<br>
New Revision: 229063<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=229063&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=229063&view=rev</a><br>
Log:<br>
[InstCombine] Fix a bug when combining `icmp` from `ptrtoint`<br>
<br>
- First, there's a crash when we try to combine that pointers into `icmp`<br>
  directly by creating a `bitcast`, which is invalid if that two pointers are<br>
  from different address spaces.<br>
<br>
- It's not always appropriate to cast one pointer to another if they are from<br>
  different address spaces as that is not no-op cast. Instead, we only combine<br>
  `icmp` from `ptrtoint` if that two pointers are of the same address space.</div></blockquote></div><br>Are these regressions from 3.5?</div></div>