Index: llvm/lib/Transforms/Utils/Local.cpp =================================================================== --- llvm/lib/Transforms/Utils/Local.cpp +++ llvm/lib/Transforms/Utils/Local.cpp @@ -108,9 +108,8 @@ "When the basic block contains not more than this number of PHI nodes, " "perform a (faster!) exhaustive search instead of set-driven one.")); -static cl::opt -DeduplicatePhisMaxDepth("deduplicate-phi-max-depth", cl::Hidden, - cl::init(8)); +static cl::opt DeduplicatePhisMaxDepth("deduplicate-phi-max-depth", + cl::Hidden, cl::init(8)); // Max recursion depth for collectBitParts used when detecting bswap and // bitreverse idioms. @@ -1305,7 +1304,7 @@ for (auto J = I; PHINode *DuplicatePN = dyn_cast(J); ++J) { SmallSet, 8> MatchingPhis; if (!DuplicatePN->isIdenticalToWhenDefined(PN) && - !matchPhiStructures(PN, DuplicatePN, MatchingPhis)) + !matchPhiStructures(PN, DuplicatePN, MatchingPhis)) continue; // A duplicate. Replace this PHI with the base PHI. ++NumPHICSEs; @@ -1372,7 +1371,7 @@ // These comparisons are nontrivial, so assert that equality implies // hash equality (DenseMap demands this as an invariant). if (LHS == getEmptyKey() || LHS == getTombstoneKey() || - RHS == getEmptyKey() || RHS == getTombstoneKey()) + RHS == getEmptyKey() || RHS == getTombstoneKey()) return LHS == RHS; SmallSet, 8> MatchingPhis; bool Result = matchPhiStructures(LHS, RHS, MatchingPhis); Index: llvm/unittests/Transforms/Utils/LocalTest.cpp =================================================================== --- llvm/unittests/Transforms/Utils/LocalTest.cpp +++ llvm/unittests/Transforms/Utils/LocalTest.cpp @@ -183,7 +183,6 @@ } } } - } TEST(Local, ReplaceDbgDeclare) {