aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-07-15 16:38:22 +0000
committerOwen Anderson <resistor@mac.com>2010-07-15 16:38:22 +0000
commit2722dfa75dbf4436197f6fcf9d8cb2391975f1a1 (patch)
treec2d837bfe06597ba80f287bd6a08c4eb9764c378
parentc88c1a4581a4c73657892ef4ed72f1c9f72ed7ff (diff)
downloadexternal_llvm-2722dfa75dbf4436197f6fcf9d8cb2391975f1a1.zip
external_llvm-2722dfa75dbf4436197f6fcf9d8cb2391975f1a1.tar.gz
external_llvm-2722dfa75dbf4436197f6fcf9d8cb2391975f1a1.tar.bz2
Remove unneeded check, and correct style.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108427 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Utils/SimplifyCFG.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp
index 08f312e..27b07d9 100644
--- a/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -1395,9 +1395,8 @@ bool llvm::FoldBranchToCommonDest(BranchInst *BI) {
// register pressure or inhibit out-of-order execution.
Instruction *BonusInst = 0;
if (&*FrontIt != Cond &&
- (*FrontIt).hasOneUse() && *(*FrontIt).use_begin() == Cond &&
- (*FrontIt).isSafeToSpeculativelyExecute() &&
- !(*FrontIt).mayReadFromMemory()) {
+ FrontIt->hasOneUse() && *FrontIt->use_begin() == Cond &&
+ FrontIt->isSafeToSpeculativelyExecute()) {
BonusInst = &*FrontIt;
++FrontIt;
}