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 7cd3047 commit 7c7cebfCopy full SHA for 7c7cebf
llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
@@ -852,10 +852,11 @@ void StructurizeCFG::setPhiValues() {
852
BasicBlock *To = AddedPhi.first;
853
const BBVector &From = AddedPhi.second;
854
855
- if (!DeletedPhis.count(To))
+ auto It = DeletedPhis.find(To);
856
+ if (It == DeletedPhis.end())
857
continue;
858
- PhiMap &Map = DeletedPhis[To];
859
+ PhiMap &Map = It->second;
860
SmallVector<BasicBlock *> &UndefBlks = UndefBlksMap[To];
861
for (const auto &[Phi, Incoming] : Map) {
862
Value *Undef = UndefValue::get(Phi->getType());
0 commit comments