projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
277f074
)
Avoid if-converting simple block that ends with unconditional branch or fallthrough...
author
Evan Cheng
<evan.cheng@apple.com>
Tue, 19 Jun 2007 21:45:13 +0000
(21:45 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Tue, 19 Jun 2007 21:45:13 +0000
(21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37660
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/IfConversion.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/IfConversion.cpp
b/lib/CodeGen/IfConversion.cpp
index 965cf6af191c01fc7bb3d2cf09d9a7fb7f163a47..64328d6e04f4a6866a4d9a8adea69f2e06ca4039 100644
(file)
--- a/
lib/CodeGen/IfConversion.cpp
+++ b/
lib/CodeGen/IfConversion.cpp
@@
-399,6
+399,9
@@
bool IfConverter::ValidSimple(BBInfo &TrueBBI, unsigned &Dups) const {
if (TrueBBI.IsBeingAnalyzed || TrueBBI.IsDone)
return false;
+ if (TrueBBI.IsBrAnalyzable)
+ return false;
+
if (TrueBBI.BB->pred_size() > 1) {
if (TrueBBI.CannotBeCopied ||
TrueBBI.NonPredSize > TLI->getIfCvtDupBlockSizeLimit())
@@
-406,7
+409,7
@@
bool IfConverter::ValidSimple(BBInfo &TrueBBI, unsigned &Dups) const {
Dups = TrueBBI.NonPredSize;
}
- return
!blockAlwaysFallThrough(TrueBBI) && TrueBBI.BrCond.size() == 0
;
+ return
true
;
}
/// ValidTriangle - Returns true if the 'true' and 'false' blocks (along