Skip to content

Commit 4589f8d

Browse files
bcheng0127igcbot
authored andcommitted
disable if conversion with call in tail BB
1 parent f500481 commit 4589f8d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

visa/ifcvt.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,11 @@ void IfConverter::analyze(std::vector<IfConvertible> &list) {
472472
continue;
473473
}
474474

475+
if (t && (t->isEndWithCall() || (t->getLastOpcode() == G4_return)))
476+
{
477+
continue;
478+
}
479+
475480
G4_Predicate *pred = ifInst->getPredicate();
476481

477482
unsigned n0 = getPredictableInsts(s0, ifInst);

0 commit comments

Comments
 (0)