diff options
author | Owen Anderson <resistor@mac.com> | 2010-07-15 16:38:22 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-07-15 16:38:22 +0000 |
commit | 2722dfa75dbf4436197f6fcf9d8cb2391975f1a1 (patch) | |
tree | c2d837bfe06597ba80f287bd6a08c4eb9764c378 | |
parent | c88c1a4581a4c73657892ef4ed72f1c9f72ed7ff (diff) | |
download | external_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.cpp | 5 |
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; } |