<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 3, 2016 at 1:59 PM, Jason Ekstrand <span dir="ltr"><<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In aad4f1550, we removed the concept of "fake" edges from NIR. Now, if you<br>
have a block at the end of an infinite loop it really has no predecessors.<br>
This updates the unit tests to match.<br>
<br></blockquote><div><br></div><div>Fixes `make check` for me.<br><br></div><div>--Aaron<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Signed-off-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=97587" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=97587</a><br>
---<br>
src/compiler/nir/tests/<wbr>control_flow_tests.cpp | 8 ++++----<br>
1 file changed, 4 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/src/compiler/nir/tests/<wbr>control_flow_tests.cpp b/src/compiler/nir/tests/<wbr>control_flow_tests.cpp<br>
index b9379ef..db660fd 100644<br>
--- a/src/compiler/nir/tests/<wbr>control_flow_tests.cpp<br>
+++ b/src/compiler/nir/tests/<wbr>control_flow_tests.cpp<br>
@@ -120,7 +120,7 @@ TEST_F(nir_cf_test, delete_break_in_loop)<br>
* // succs: block_1<br>
* }<br>
* block block_2:<br>
- * // preds: block_1<br>
+ * // preds:<br>
* // succs: block_3<br>
* block block_3:<br>
* }<br>
@@ -130,18 +130,18 @@ TEST_F(nir_cf_test, delete_break_in_loop)<br>
EXPECT_EQ(block_1, block_0->successors[0]);<br>
EXPECT_EQ(NULL, block_0->successors[1]);<br>
EXPECT_EQ(block_1, block_1->successors[0]); /* back to itself */<br>
- EXPECT_EQ(block_2, block_1->successors[1]); /* fake successor */<br>
+ EXPECT_EQ(NULL, block_1->successors[1]);<br>
EXPECT_EQ(block_3, block_2->successors[0]);<br>
EXPECT_EQ(NULL, block_2->successors[1]);<br>
EXPECT_EQ(NULL, block_3->successors[0]);<br>
EXPECT_EQ(NULL, block_3->successors[1]);<br>
EXPECT_EQ(0, block_0->predecessors-><wbr>entries);<br>
EXPECT_EQ(2, block_1->predecessors-><wbr>entries);<br>
- EXPECT_EQ(1, block_2->predecessors-><wbr>entries);<br>
+ EXPECT_EQ(0, block_2->predecessors-><wbr>entries);<br>
EXPECT_EQ(1, block_3->predecessors-><wbr>entries);<br>
EXPECT_TRUE(_mesa_set_search(<wbr>block_1->predecessors, block_0));<br>
EXPECT_TRUE(_mesa_set_search(<wbr>block_1->predecessors, block_1));<br>
- EXPECT_TRUE(_mesa_set_search(<wbr>block_2->predecessors, block_1));<br>
+ EXPECT_FALSE(_mesa_set_search(<wbr>block_2->predecessors, block_1));<br>
EXPECT_TRUE(_mesa_set_search(<wbr>block_3->predecessors, block_2));<br>
<br>
nir_metadata_require(b.impl, nir_metadata_dominance);<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.0.400.gff86faf<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>