Commit 317b55c0 authored by Junjie Gu's avatar Junjie Gu Committed by gbsbuild

Revert of:

Removing flags of dessa's node exposes this bug, in which
a dead goto was left in the code. That dead goto causes
infinite looping

Change-Id: I19941fe6642f5e014c8683a54d28bc20b2f7c4f9
parent 9df40d30
......@@ -564,10 +564,6 @@ void IfConverter::fullConvert(IfConvertible &IC) {
} else {
if (op == G4_else)
continue;
// For fullConvert, whole if-then-endif/if-then-else-endif is
// gone, so no goto should be moved into head.
if (op == G4_goto)
continue;
}
/* Predicate instructions if it's not goto-style or it's not
* neither goto nor its flag clearing instruction */
......@@ -596,10 +592,6 @@ void IfConverter::fullConvert(IfConvertible &IC) {
continue;
if (op == G4_join)
continue;
// For fullConvert, whole if-then-endif/if-then-else-endif is
// gone, so no goto should be moved into head.
if (op == G4_goto)
continue;
/* Predicate instructions if it's not goto-style or it's not
* neither goto nor its flag clearing instruction */
if (!isGoto ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment