<div dir="ltr">I will think about a test case. <div>The main motivation is that a frontend might generate code that contains address-space casts and the PPC backend cannot select these address-space casts since IIUC PPC has no notion of address-spaces. AArch64 is in a similar position and follows the same tactic (see <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px"><a href="https://github.com/llvm-mirror/llvm/blob/f0454dcc5c809cf31155d6fe12db756fe4718b45/lib/Target/AArch64/AArch64ISelLowering.h#L277-L280">https://github.com/llvm-mirror/llvm/blob/f0454dcc5c809cf31155d6fe12db756fe4718b45/lib/Target/AArch64/AArch64ISelLowering.h#L277-L280</a></span>).</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 26 Feb 2018 at 20:53 Nemanja Ivanovic via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">nemanjai added a comment.<br>
<br>
This seems like a perfectly reasonable thing to do. However, I'd like to understand the implications of this change - does anything change behaviour as a result? If so, can we have a test case? If not, does this just save compile time (i.e. we don't insert casts that will just be cleaned up anyway)? Even if the change is only internal to the SDAG processing and the final code doesn't change, would it be possible to have an MIR test case that shows the difference?<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D43781" rel="noreferrer" target="_blank">https://reviews.llvm.org/D43781</a><br>
<br>
<br>
<br>
</blockquote></div>