<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Brendon,</p>
<p><br>
</p>
<p>I have a simple test case that has an anti- loop carry dependence:</p>
<p><br>
</p>
<p>void foo (int n, int *__restrict a, int *__restrict b) {</p>
<p>  int i;</p>
<p>  for (i = 0; i < n-1; ++i) {</p>
<p>    a[i] = i + 1;</p>
<p>    b[i] = a[i] + a[i-1];</p>
<p>  }</p>
<p>}</p>
<p><br>
</p>
<p>I tested with output dependence as well: there will be a order dependence added.</p>
<p><br>
</p>
<p>Thanks.</p>
<p><br>
</p>
<p>Best,</p>
<p>Ning</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Brendon Cahoon via Phabricator <reviews@reviews.llvm.org><br>
<b>Sent:</b> October 6, 2017 7:36:20 PM<br>
<b>To:</b> ning4827@outlook.com; bcahoon@codeaurora.org<br>
<b>Cc:</b> llvm-commits@lists.llvm.org<br>
<b>Subject:</b> [PATCH] D38632: Add anti- and output loop carried dependences in SwingScheduler</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">bcahoon added a comment.<br>
<br>
Thanks for adding this functionality.  I'll take a look.  Do you happen to have a test case?<br>
<br>
Thanks,<br>
Brendon<br>
<br>
<br>
<a href="https://reviews.llvm.org/D38632">https://reviews.llvm.org/D38632</a><br>
<br>
<br>
<br>
</div>
</span></font>
</body>
</html>