OSDN Git Service

[SimplifyCFG] Return to the pass manager the correct value.
[android-x86/external-llvm.git] / lib / Transforms / Utils / SimplifyCFG.cpp
index 5d53003..7c19578 100644 (file)
@@ -1285,7 +1285,7 @@ static bool HoistThenElseCodeToIf(BranchInst *BI,
     auto *C2 = dyn_cast<CallInst>(I2);
     if (C1 && C2)
       if (C1->isMustTailCall() != C2->isMustTailCall())
-        return false;
+        return Changed;
 
     if (!TTI.isProfitableToHoist(I1) || !TTI.isProfitableToHoist(I2))
       return Changed;