diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 5d5300368cc..7c195788e41 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -1285,7 +1285,7 @@ static bool HoistThenElseCodeToIf(BranchInst *BI, auto *C2 = dyn_cast(I2); if (C1 && C2) if (C1->isMustTailCall() != C2->isMustTailCall()) - return false; + return Changed; if (!TTI.isProfitableToHoist(I1) || !TTI.isProfitableToHoist(I2)) return Changed;