<div dir="ltr">The commit date was incorrectly set and now it is appearing at the top of github history for a while, I'm sorry for the hassle. :(</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 20, 2021 at 6:15 PM Juneyoung Lee via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@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"><br>
Author: Juneyoung Lee<br>
Date: 2021-03-21T02:14:13+09:00<br>
New Revision: 319d093b87a89712573d159da019ce363ae51430<br>
<br>
URL: <a href="https://github.com/llvm/llvm-project/commit/319d093b87a89712573d159da019ce363ae51430" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/319d093b87a89712573d159da019ce363ae51430</a><br>
DIFF: <a href="https://github.com/llvm/llvm-project/commit/319d093b87a89712573d159da019ce363ae51430.diff" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project/commit/319d093b87a89712573d159da019ce363ae51430.diff</a><br>
<br>
LOG: [CFLGraph] Fix a crash due to missing handling of freeze<br>
<br>
<a href="https://reviews.llvm.org/D85534#2636321" rel="noreferrer" target="_blank">https://reviews.llvm.org/D85534#2636321</a><br>
<br>
Added: <br>
<br>
<br>
Modified: <br>
llvm/lib/Analysis/CFLGraph.h<br>
<br>
Removed: <br>
<br>
<br>
<br>
################################################################################<br>
diff --git a/llvm/lib/Analysis/CFLGraph.h b/llvm/lib/Analysis/CFLGraph.h<br>
index 21842ed36487..02a13d673f40 100644<br>
--- a/llvm/lib/Analysis/CFLGraph.h<br>
+++ b/llvm/lib/Analysis/CFLGraph.h<br>
@@ -284,6 +284,13 @@ template <typename CFLAA> class CFLGraphBuilder {<br>
addAssignEdge(Src, &Inst);<br>
}<br>
<br>
+ void visitFreezeInst(FreezeInst &Inst) {<br>
+ // Accessing freeze(ptr) is equivalent to accessing ptr.<br>
+ // The former raises UB iff latter raises UB.<br>
+ auto *Src = Inst.getOperand(0);<br>
+ addAssignEdge(Src, &Inst);<br>
+ }<br>
+<br>
void visitBinaryOperator(BinaryOperator &Inst) {<br>
auto *Op1 = Inst.getOperand(0);<br>
auto *Op2 = Inst.getOperand(1);<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br></div><font size="1">Juneyoung Lee</font><div><font size="1">Software Foundation Lab, Seoul National University</font></div></div></div>