We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f07e435 commit 4d5faa9Copy full SHA for 4d5faa9
llvm/lib/Transforms/Utils/Local.cpp
@@ -1060,7 +1060,7 @@ static bool introduceTooComplexPhi(BasicBlock *BB) {
1060
int NumPreds = pred_size(BB);
1061
auto *Succ = BB->getTerminator()->getSuccessor(0);
1062
for (auto &Phi : Succ->phis()) {
1063
- auto BlockIdx = Phi.getBasicBlockIndex(BB);
+ int BlockIdx = Phi.getBasicBlockIndex(BB);
1064
if (BlockIdx >= 0) {
1065
// If the incoming value is a phi and the phi is defined in BB,
1066
// then removing BB will not increase the total phi entries of the ir.
0 commit comments