[llvm-commits] [llvm] r108427 - /llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Owen Anderson resistor at mac.com
Thu Jul 15 09:38:22 PDT 2010


Author: resistor
Date: Thu Jul 15 11:38:22 2010
New Revision: 108427

URL: http://llvm.org/viewvc/llvm-project?rev=108427&view=rev
Log:
Remove unneeded check, and correct style.

Modified:
    llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=108427&r1=108426&r2=108427&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Thu Jul 15 11:38:22 2010
@@ -1395,9 +1395,8 @@
   // 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;
   }





More information about the llvm-commits mailing list