OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SimplifyCFG] Return to the pass manager the correct value.
[android-x86/external-llvm.git]
/
lib
/
Transforms
/
Utils
/
SimplifyCFG.cpp
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index
5d53003
..
7c19578
100644
(file)
--- 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<CallInst>(I2);
if (C1 && C2)
if (C1->isMustTailCall() != C2->isMustTailCall())
- return
false
;
+ return
Changed
;
if (!TTI.isProfitableToHoist(I1) || !TTI.isProfitableToHoist(I2))
return Changed;