Remove unneeded check, and correct style.
authorOwen Anderson <resistor@mac.com>
Thu, 15 Jul 2010 16:38:22 +0000 (16:38 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 15 Jul 2010 16:38:22 +0000 (16:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108427 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyCFG.cpp

index 08f312e5eb86077b97063aab7f93b3797225f40e..27b07d9731a585c7a732e66b242760f3eaff6dec 100644 (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;
   }