We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d109c commit bc09bebCopy full SHA for bc09beb
llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
@@ -189,7 +189,7 @@ void SIOptimizeVGPRLiveRange::collectElseRegionBlocks(
189
unsigned Cur = 0;
190
while (MBB) {
191
for (auto *Pred : MBB->predecessors()) {
192
- if (Pred != Flow && !Blocks.contains(Pred))
+ if (Pred != Flow)
193
Blocks.insert(Pred);
194
}
195
@@ -407,10 +407,8 @@ void SIOptimizeVGPRLiveRange::updateLiveRangeInThenRegion(
407
while (!WorkList.empty()) {
408
auto *MBB = WorkList.pop_back_val();
409
for (auto *Succ : MBB->successors()) {
410
- if (Succ != Flow && !Blocks.contains(Succ)) {
+ if (Succ != Flow && Blocks.insert(Succ))
411
WorkList.push_back(Succ);
412
- Blocks.insert(Succ);
413
- }
414
415
416
0 commit comments