1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[SimplifyCFG] Return to the pass manager the correct value.

I wanted to commit this with r321603, but I failed to squash
the two commits.

llvm-svn: 321606
This commit is contained in:
Davide Italiano 2017-12-31 16:54:03 +00:00
parent e04c20f33e
commit 23d9c3172d

View 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;