<div dir="ltr"><div>Thank you for doing this, it seems the right thing to me.</div><div><br></div><div>Cheers,</div><div>Nicolai<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 19, 2020 at 10:26 PM Juneyoung Lee via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello all,<div><br></div><div>Currently, undef is used as a don't-care value for vector operations, which causes hard problems.</div><div>For example, a shufflevector sometimes cannot be optimized away (<a href="https://bugs.llvm.org/show_bug.cgi?id=44185" rel="noreferrer" target="_blank">https://bugs.llvm.org/show_bug.cgi?id=44185</a>). The reason is that undef is not undefined enough.</div><div><br></div><div>To avoid such problem, I'd like to suggest using poison constant for vector operations' placeholder instead.</div><div>I made a patch that updates InstCombine's SimplifyDemandedVectorElts here, with a detailed description: <a href="https://reviews.llvm.org/D93586" target="_blank">https://reviews.llvm.org/D93586</a></div><div><br></div><div>Thanks,</div><div>Juneyoung</div></div></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Lerne, wie die Welt wirklich ist,<br>aber vergiss niemals, wie sie sein sollte.</div>