File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -781,7 +781,7 @@ void FieldSensitiveMultiDefPrunedLiveRange::findBoundariesInBlock(
781
781
LLVM_DEBUG (llvm::dbgs () << " Has multiple defs!\n " );
782
782
783
783
// Handle a live-out or live-within block with potentially multiple defs
784
- // unsigned prevCount = boundary.getNumLastUsersAndDeadDefs(bitNo);
784
+ unsigned prevCount = boundary.getNumLastUsersAndDeadDefs (bitNo);
785
785
bool isLive = isLiveOut;
786
786
for (auto &inst : llvm::reverse (*block)) {
787
787
LLVM_DEBUG (llvm::dbgs () << " Visiting: " << inst);
@@ -861,6 +861,7 @@ void FieldSensitiveMultiDefPrunedLiveRange::findBoundariesInBlock(
861
861
<< " Live at beginning of block! No dead args!\n " );
862
862
}
863
863
864
- // assert(prevCount < boundary.getNumLastUsersAndDeadDefs(bitNo) &&
865
- // "findBoundariesInBlock must be called on a live block");
864
+ assert ((isLiveOut ||
865
+ prevCount < boundary.getNumLastUsersAndDeadDefs (bitNo)) &&
866
+ " findBoundariesInBlock must be called on a live block" );
866
867
}
You can’t perform that action at this time.
0 commit comments