Skip to content

Commit ead3cad

Browse files
Handle cases where instructions can be inserted in masking blocks
1 parent f17d0a8 commit ead3cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Backend/BackwardPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3244,7 +3244,7 @@ BackwardPass::ProcessBlock(BasicBlock * block)
32443244
FOREACH_SLIST_ENTRY(IR::ByteCodeUsesInstr*, bcuInstr, loop->outwardSpeculationMaskInstrs)
32453245
{
32463246
// Get the upwardExposed information for the previous block
3247-
IR::LabelInstr *blockLabel = bcuInstr->m_prev->AsLabelInstr();
3247+
IR::LabelInstr *blockLabel = bcuInstr->GetBlockStartInstr()->AsLabelInstr();
32483248
BasicBlock* maskingBlock = blockLabel->GetBasicBlock();
32493249
// Since it's possible we have a multi-level loop structure (each with its own mask
32503250
// instructions and dereferenced symbol list), we may be able to avoid masking some

0 commit comments

Comments
 (0)