File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
IGC/VectorCompiler/lib/GenXCodeGen Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1552,14 +1552,14 @@ void GenXCoalescing::coalesceOutputArgs(FunctionGroup *FG) {
1552
1552
return nullptr ;
1553
1553
};
1554
1554
1555
- // Iterate over all exit blocks of this function and coalesce corresponding
1556
- // output argument with genx.output.1 intrinsic (assuming that their number
1557
- // and ordering are exactly the same).
1555
+ // Iterate over all basic blocks with genx.output.1 intrinsics and coalesce
1556
+ // corresponding output argument with intrinsic argument (assuming that their
1557
+ // number and ordering are exactly the same).
1558
1558
for (auto &BB : *F) {
1559
- if (!isa<ReturnInst>(BB.getTerminator ()))
1559
+ CallInst *CI = GetNextGenXOutput (BB.getFirstNonPHI ());
1560
+ if (!CI)
1560
1561
continue ;
1561
1562
1562
- CallInst *CI = GetNextGenXOutput (BB.getFirstNonPHI ());
1563
1563
for (auto Arg : OutputArgs) {
1564
1564
IGC_ASSERT (CI && " No genx.output.1 intrinsic for output argument" );
1565
1565
You can’t perform that action at this time.
0 commit comments