From 2722dfa75dbf4436197f6fcf9d8cb2391975f1a1 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 15 Jul 2010 16:38:22 +0000 Subject: [PATCH] Remove unneeded check, and correct style. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108427 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/SimplifyCFG.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 08f312e5eb8..27b07d9731a 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; }