Remove unneeded check, and correct style.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108427 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2010-07-15 16:38:22 +00:00
parent c88c1a4581
commit 2722dfa75d

View File

@ -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;
}